summaryrefslogtreecommitdiffstats
path: root/src/dbus/qdbusunixfiledescriptor.h
diff options
context:
space:
mode:
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;