summaryrefslogtreecommitdiffstats
path: root/src/network/bearer
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/bearer')
-rw-r--r--src/network/bearer/qnetworkconfiguration.cpp8
-rw-r--r--src/network/bearer/qnetworkconfiguration.h2
2 files changed, 10 insertions, 0 deletions
diff --git a/src/network/bearer/qnetworkconfiguration.cpp b/src/network/bearer/qnetworkconfiguration.cpp
index 0aa843f393..9e3f685642 100644
--- a/src/network/bearer/qnetworkconfiguration.cpp
+++ b/src/network/bearer/qnetworkconfiguration.cpp
@@ -234,6 +234,14 @@ QNetworkConfiguration &QNetworkConfiguration::operator=(const QNetworkConfigurat
}
/*!
+ \fn void QNetworkConfiguration::swap(QNetworkConfiguration &other)
+ \since 5.0
+
+ Swaps this network configuration with \a other. This function is
+ very fast and never fails.
+*/
+
+/*!
Returns true, if this configuration is the same as the \a other
configuration given; otherwise returns false.
*/
diff --git a/src/network/bearer/qnetworkconfiguration.h b/src/network/bearer/qnetworkconfiguration.h
index 2feb3d2394..807589cf45 100644
--- a/src/network/bearer/qnetworkconfiguration.h
+++ b/src/network/bearer/qnetworkconfiguration.h
@@ -61,6 +61,8 @@ public:
QNetworkConfiguration &operator=(const QNetworkConfiguration &other);
~QNetworkConfiguration();
+ void swap(QNetworkConfiguration &other) { qSwap(d, other.d); }
+
bool operator==(const QNetworkConfiguration &other) const;
inline bool operator!=(const QNetworkConfiguration &other) const
{ return !operator==(other); }