From b58b777cb3df1df3725c601b655128ce875a8687 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Thu, 5 Apr 2012 14:49:02 +0200 Subject: QtDBus: add member-swap to shared classes Implemented as in other shared classes (e.g. QPen). Change-Id: Ic827540b535fc5506165b5395b796a53a00bb096 Reviewed-by: Thiago Macieira --- src/dbus/qdbuspendingcall.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/dbus/qdbuspendingcall.h') 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; -- cgit v1.2.3