QPointer: remove user-declared empty destructor

It prevents the compiler from synthesizing move assignment
and move constructor.

Change-Id: I864d143d5a6233e45f3f2fc343a147db89559f33
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Marc Mutz 2015-06-26 12:20:56 +02:00
parent a082b41d2c
commit 639ef6ca1a

View File

@ -64,7 +64,7 @@ public:
inline QPointer() { }
inline QPointer(T *p) : wp(p, true) { }
// compiler-generated copy/move ctor/assignment operators are fine!
inline ~QPointer() { }
// compiler-generated dtor is fine!
inline void swap(QPointer &other) { wp.swap(other.wp); }