diff options
author | Aaron McCarthy <aaron.mccarthy@nokia.com> | 2010-02-15 05:24:24 (GMT) |
---|---|---|
committer | Aaron McCarthy <aaron.mccarthy@nokia.com> | 2010-02-15 05:24:24 (GMT) |
commit | 868d5fc208acbe9579b2c70637cccdd355263c11 (patch) | |
tree | 5397af06066cd6812d0610bb2ac577d273892f23 /src/network/bearer | |
parent | 4fb59e0a8d40083f545dd43a370bd6d7b7b4cd35 (diff) | |
download | Qt-868d5fc208acbe9579b2c70637cccdd355263c11.zip Qt-868d5fc208acbe9579b2c70637cccdd355263c11.tar.gz Qt-868d5fc208acbe9579b2c70637cccdd355263c11.tar.bz2 |
Simplify.
Diffstat (limited to 'src/network/bearer')
-rw-r--r-- | src/network/bearer/qnetworkconfigmanager_p.cpp | 3 |
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) |