summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAaron McCarthy <aaron.mccarthy@nokia.com>2010-02-15 05:24:24 (GMT)
committerAaron McCarthy <aaron.mccarthy@nokia.com>2010-02-15 05:24:24 (GMT)
commit868d5fc208acbe9579b2c70637cccdd355263c11 (patch)
tree5397af06066cd6812d0610bb2ac577d273892f23 /src
parent4fb59e0a8d40083f545dd43a370bd6d7b7b4cd35 (diff)
downloadQt-868d5fc208acbe9579b2c70637cccdd355263c11.zip
Qt-868d5fc208acbe9579b2c70637cccdd355263c11.tar.gz
Qt-868d5fc208acbe9579b2c70637cccdd355263c11.tar.bz2
Simplify.
Diffstat (limited to 'src')
-rw-r--r--src/network/bearer/qnetworkconfigmanager_p.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/network/bearer/qnetworkconfigmanager_p.cpp b/src/network/bearer/qnetworkconfigmanager_p.cpp
index b7a30b8..4367654 100644
--- a/src/network/bearer/qnetworkconfigmanager_p.cpp
+++ b/src/network/bearer/qnetworkconfigmanager_p.cpp
@@ -55,8 +55,7 @@ Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, loader,
QNetworkConfigurationManagerPrivate::~QNetworkConfigurationManagerPrivate()
{
- while (!sessionEngines.isEmpty())
- delete sessionEngines.takeFirst();
+ qDeleteAll(sessionEngines);
}
void QNetworkConfigurationManagerPrivate::configurationAdded(QNetworkConfigurationPrivatePointer ptr)