diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2015-07-08 01:27:56 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2015-07-18 06:19:54 +0000 |
commit | 98eef668e68d77eacc2aa8ac92678af84f07167f (patch) | |
tree | c4788736aa77729cb73e9e77c0b903ebdc487fb3 /src | |
parent | 53ee7444d84af9fe701540830dfa7966dee153ea (diff) |
Mark QDBusSlotCache{,::Data} shared
The compiler-generated move operations are ok.
Change-Id: Iec0fed49d52ace5ca7dae2c7ee53d717a283f15a
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/dbus/qdbusintegrator_p.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/dbus/qdbusintegrator_p.h b/src/dbus/qdbusintegrator_p.h index cd358569df..95eeed3fff 100644 --- a/src/dbus/qdbusintegrator_p.h +++ b/src/dbus/qdbusintegrator_p.h @@ -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 { |