QDBusArgument: declare as shared-come-Qt6
Requires adding member-swap and (at least in my copy) move operations. Change-Id: I0b32c387809c972203c94677616fe0a52143ec3b Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
9ed9787b7e
commit
188a8a7f1d
@ -70,9 +70,15 @@ public:
|
||||
|
||||
QDBusArgument();
|
||||
QDBusArgument(const QDBusArgument &other);
|
||||
#ifdef Q_COMPILER_RVALUE_REFS
|
||||
QDBusArgument(QDBusArgument &&other) Q_DECL_NOTHROW : d(other.d) { other.d = Q_NULLPTR; }
|
||||
QDBusArgument &operator=(QDBusArgument &&other) Q_DECL_NOTHROW { swap(other); return *this; }
|
||||
#endif
|
||||
QDBusArgument &operator=(const QDBusArgument &other);
|
||||
~QDBusArgument();
|
||||
|
||||
void swap(QDBusArgument &other) Q_DECL_NOTHROW { qSwap(d, other.d); }
|
||||
|
||||
// used for marshalling (Qt -> D-BUS)
|
||||
QDBusArgument &operator<<(uchar arg);
|
||||
QDBusArgument &operator<<(bool arg);
|
||||
@ -140,6 +146,7 @@ protected:
|
||||
friend class QDBusArgumentPrivate;
|
||||
mutable QDBusArgumentPrivate *d;
|
||||
};
|
||||
Q_DECLARE_SHARED_NOT_MOVABLE_UNTIL_QT6(QDBusArgument)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
Q_DECLARE_METATYPE(QDBusArgument)
|
||||
|
Loading…
Reference in New Issue
Block a user