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/qdnslookup.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/qdnslookup.h')
-rw-r--r-- | src/network/kernel/qdnslookup.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/network/kernel/qdnslookup.h b/src/network/kernel/qdnslookup.h index 89e8cbb852..f9f7261cbe 100644 --- a/src/network/kernel/qdnslookup.h +++ b/src/network/kernel/qdnslookup.h @@ -69,6 +69,8 @@ public: QDnsDomainNameRecord(const QDnsDomainNameRecord &other); ~QDnsDomainNameRecord(); + void swap(QDnsDomainNameRecord &other) { qSwap(d, other.d); } + QString name() const; quint32 timeToLive() const; QString value() const; @@ -87,6 +89,8 @@ public: QDnsHostAddressRecord(const QDnsHostAddressRecord &other); ~QDnsHostAddressRecord(); + void swap(QDnsHostAddressRecord &other) { qSwap(d, other.d); } + QString name() const; quint32 timeToLive() const; QHostAddress value() const; @@ -105,6 +109,8 @@ public: QDnsMailExchangeRecord(const QDnsMailExchangeRecord &other); ~QDnsMailExchangeRecord(); + void swap(QDnsMailExchangeRecord &other) { qSwap(d, other.d); } + QString exchange() const; QString name() const; quint16 preference() const; @@ -124,6 +130,8 @@ public: QDnsServiceRecord(const QDnsServiceRecord &other); ~QDnsServiceRecord(); + void swap(QDnsServiceRecord &other) { qSwap(d, other.d); } + QString name() const; quint16 port() const; quint16 priority() const; @@ -145,6 +153,8 @@ public: QDnsTextRecord(const QDnsTextRecord &other); ~QDnsTextRecord(); + void swap(QDnsTextRecord &other) { qSwap(d, other.d); } + QString name() const; quint32 timeToLive() const; QList<QByteArray> values() const; |