[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdeedu/marble/src/lib/geodata/data
From:       Nikolas Zimmermann <wildfox () kde ! org>
Date:       2008-03-11 15:25:02
Message-ID: 1205249102.165089.23878.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 784518 by wildfox:

Use qDeleteAll for speed.


 M  +1 -5      GeoDataContainer.cpp  


--- trunk/KDE/kdeedu/marble/src/lib/geodata/data/GeoDataContainer.cpp #784517:784518
@@ -20,11 +20,7 @@
 
 GeoDataContainer::~GeoDataContainer()
 {
-    qDebug("GeoDataContainer::~GeoDataContainer(). Object count: %d", m_features.count());
-
-    foreach ( GeoDataFeature* feature, m_features ) {
-        delete feature;
-    }
+    qDeleteAll(m_features);
 }
 
 QVector<GeoDataFolder*> GeoDataContainer::folders() const
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic