summaryrefslogtreecommitdiffstats
path: root/src/dbus/qdbusunixfiledescriptor.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/qdbusunixfiledescriptor.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/qdbusunixfiledescriptor.h')
-rw-r--r--src/dbus/qdbusunixfiledescriptor.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dbus/qdbusunixfiledescriptor.h b/src/dbus/qdbusunixfiledescriptor.h
index bfb2262a31..9fe0b77230 100644
--- a/src/dbus/qdbusunixfiledescriptor.h
+++ b/src/dbus/qdbusunixfiledescriptor.h
@@ -68,6 +68,9 @@ public:
QDBusUnixFileDescriptor &operator=(const QDBusUnixFileDescriptor &other);
~QDBusUnixFileDescriptor();
+ void swap(QDBusUnixFileDescriptor &other)
+ { qSwap(d, other.d); }
+
bool isValid() const;
int fileDescriptor() const;