From b0aa023aa2e08fb24eb1220c92bec02df3df8c90 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Thu, 5 Apr 2012 14:49:02 +0200 Subject: QtNetwork: add member-swap to shared classes Implemented as in other shared classes (e.g. QPen). Change-Id: Ib3d87ff99603e617cc8810489f9f5e9fe054cd2a Reviewed-by: Thiago Macieira Reviewed-by: Shane Kearns --- src/network/kernel/qdnslookup.cpp | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'src/network/kernel/qdnslookup.cpp') diff --git a/src/network/kernel/qdnslookup.cpp b/src/network/kernel/qdnslookup.cpp index a826422978..f962b2ee3d 100644 --- a/src/network/kernel/qdnslookup.cpp +++ b/src/network/kernel/qdnslookup.cpp @@ -545,6 +545,12 @@ QDnsDomainNameRecord &QDnsDomainNameRecord::operator=(const QDnsDomainNameRecord d = other.d; return *this; } +/*! + \fn void QDnsDomainNameRecord::swap(QDnsDomainNameRecord &other) + + Swaps this domain-name record instance with \a other. This + function is very fast and never fails. +*/ /*! \class QDnsHostAddressRecord @@ -623,6 +629,12 @@ QDnsHostAddressRecord &QDnsHostAddressRecord::operator=(const QDnsHostAddressRec d = other.d; return *this; } +/*! + \fn void QDnsHostAddressRecord::swap(QDnsHostAddressRecord &other) + + Swaps this host address record instance with \a other. This + function is very fast and never fails. +*/ /*! \class QDnsMailExchangeRecord @@ -712,6 +724,12 @@ QDnsMailExchangeRecord &QDnsMailExchangeRecord::operator=(const QDnsMailExchange d = other.d; return *this; } +/*! + \fn void QDnsMailExchangeRecord::swap(QDnsMailExchangeRecord &other) + + Swaps this mail exchange record with \a other. This function is + very fast and never fails. +*/ /*! \class QDnsServiceRecord @@ -826,6 +844,12 @@ QDnsServiceRecord &QDnsServiceRecord::operator=(const QDnsServiceRecord &other) d = other.d; return *this; } +/*! + \fn void QDnsServiceRecord::swap(QDnsServiceRecord &other) + + Swaps this service record instance with \a other. This function is + very fast and never fails. +*/ /*! \class QDnsTextRecord @@ -906,6 +930,12 @@ QDnsTextRecord &QDnsTextRecord::operator=(const QDnsTextRecord &other) d = other.d; return *this; } +/*! + \fn void QDnsTextRecord::swap(QDnsTextRecord &other) + + Swaps this text record instance with \a other. This function is + very fast and never fails. +*/ void QDnsLookupPrivate::_q_lookupFinished(const QDnsLookupReply &_reply) { -- cgit v1.2.3