diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2012-04-05 14:49:02 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-06 16:08:02 +0200 |
commit | b0aa023aa2e08fb24eb1220c92bec02df3df8c90 (patch) | |
tree | 1660f4eb0b552ff32bb86f47f6ac7f9cca7878ac /src/network/kernel/qnetworkproxy.h | |
parent | 7d63fa6edcbe706bf0eab2c7e24efa1ed8940e6d (diff) |
QtNetwork: add member-swap to shared classes
Implemented as in other shared classes (e.g. QPen).
Change-Id: Ib3d87ff99603e617cc8810489f9f5e9fe054cd2a
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
Diffstat (limited to 'src/network/kernel/qnetworkproxy.h')
-rw-r--r-- | src/network/kernel/qnetworkproxy.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/network/kernel/qnetworkproxy.h b/src/network/kernel/qnetworkproxy.h index 2e5c3ed687..5287546849 100644 --- a/src/network/kernel/qnetworkproxy.h +++ b/src/network/kernel/qnetworkproxy.h @@ -86,6 +86,9 @@ public: #endif ~QNetworkProxyQuery(); QNetworkProxyQuery &operator=(const QNetworkProxyQuery &other); + + void swap(QNetworkProxyQuery &other) { qSwap(d, other.d); } + bool operator==(const QNetworkProxyQuery &other) const; inline bool operator!=(const QNetworkProxyQuery &other) const { return !(*this == other); } @@ -147,6 +150,9 @@ public: QNetworkProxy(const QNetworkProxy &other); QNetworkProxy &operator=(const QNetworkProxy &other); ~QNetworkProxy(); + + void swap(QNetworkProxy &other) { qSwap(d, other.d); } + bool operator==(const QNetworkProxy &other) const; inline bool operator!=(const QNetworkProxy &other) const { return !(*this == other); } |