From 868d5fc208acbe9579b2c70637cccdd355263c11 Mon Sep 17 00:00:00 2001 From: Aaron McCarthy Date: Mon, 15 Feb 2010 15:24:24 +1000 Subject: Simplify. --- src/network/bearer/qnetworkconfigmanager_p.cpp | 3 +-- 1 file changed, 1 insertion(+), 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) -- cgit v0.12