Mark QDBusSlotCache{,::Data} shared
The compiler-generated move operations are ok. Change-Id: Iec0fed49d52ace5ca7dae2c7ee53d717a283f15a Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>bb10
parent
53ee7444d8
commit
98eef668e6
|
|
@ -76,10 +76,21 @@ struct QDBusSlotCache
|
|||
int flags;
|
||||
int slotIdx;
|
||||
QVector<int> metaTypes;
|
||||
|
||||
void swap(Data &other) Q_DECL_NOTHROW
|
||||
{
|
||||
qSwap(flags, other.flags);
|
||||
qSwap(slotIdx, other.slotIdx);
|
||||
qSwap(metaTypes, other.metaTypes);
|
||||
}
|
||||
};
|
||||
typedef QMultiHash<QString, Data> Hash;
|
||||
Hash hash;
|
||||
|
||||
void swap(QDBusSlotCache &other) Q_DECL_NOTHROW { qSwap(hash, other.hash); }
|
||||
};
|
||||
Q_DECLARE_SHARED(QDBusSlotCache::Data)
|
||||
Q_DECLARE_SHARED(QDBusSlotCache)
|
||||
|
||||
class QDBusCallDeliveryEvent: public QMetaCallEvent
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue