summaryrefslogtreecommitdiffstats
path: root/src/dbus/qdbuspendingcall.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2012-04-05 14:49:02 +0200
committerQt by Nokia <qt-info@nokia.com>2012-05-09 02:39:08 +0200
commitb58b777cb3df1df3725c601b655128ce875a8687 (patch)
treed80ce9ca9738d3fe42b277f7e59b984798091874 /src/dbus/qdbuspendingcall.h
parent7fbc80f0eb2325b6abc33286f02b065605eb4490 (diff)
QtDBus: add member-swap to shared classes
Implemented as in other shared classes (e.g. QPen). Change-Id: Ic827540b535fc5506165b5395b796a53a00bb096 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/dbus/qdbuspendingcall.h')
-rw-r--r--src/dbus/qdbuspendingcall.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dbus/qdbuspendingcall.h b/src/dbus/qdbuspendingcall.h
index 8655435501..0256c4cc6e 100644
--- a/src/dbus/qdbuspendingcall.h
+++ b/src/dbus/qdbuspendingcall.h
@@ -68,6 +68,8 @@ public:
~QDBusPendingCall();
QDBusPendingCall &operator=(const QDBusPendingCall &other);
+ void swap(QDBusPendingCall &other) { qSwap(d, other.d); }
+
#ifndef Q_QDOC
// pretend that they aren't here
bool isFinished() const;