QMetaObject::Connection: mark move ctors Q_DECL_NOTHROW
Drop the #ifdef Q_COMPILER_RVALUE_REFS - we require that since Qt 5.7. Change-Id: Ib4c6f559b014915f43875ec6791bfda3f24a109b Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>bb10
parent
15557a12de
commit
4c704fad08
|
|
@ -614,11 +614,9 @@ public:
|
|||
operator RestrictedBool() const { return d_ptr && isConnected_helper() ? &Connection::d_ptr : nullptr; }
|
||||
#endif
|
||||
|
||||
#ifdef Q_COMPILER_RVALUE_REFS
|
||||
inline Connection(Connection &&o) : d_ptr(o.d_ptr) { o.d_ptr = nullptr; }
|
||||
inline Connection &operator=(Connection &&other)
|
||||
Connection(Connection &&o) Q_DECL_NOTHROW : d_ptr(o.d_ptr) { o.d_ptr = nullptr; }
|
||||
Connection &operator=(Connection &&other) Q_DECL_NOTHROW
|
||||
{ qSwap(d_ptr, other.d_ptr); return *this; }
|
||||
#endif
|
||||
};
|
||||
|
||||
inline const QMetaObject *QMetaObject::superClass() const
|
||||
|
|
|
|||
Loading…
Reference in New Issue