[Marble-commits] KDE/kdeedu/marble/src/lib/geodata/scene

Jens-Michael Hoffmann jensmh at gmx.de
Fri Jul 10 16:39:27 CEST 2009


SVN commit 994353 by jmhoffmann:

Cache end iterator.


 M  +2 -1      GeoSceneSection.cpp  


--- trunk/KDE/kdeedu/marble/src/lib/geodata/scene/GeoSceneSection.cpp #994352:994353
@@ -67,7 +67,8 @@
     GeoSceneItem* item = 0;
 
     QVector<GeoSceneItem*>::const_iterator it = m_items.constBegin();
-    for (; it != m_items.constEnd(); ++it) {
+    QVector<GeoSceneItem*>::const_iterator end = m_items.constEnd();
+    for (; it != end; ++it) {
         if ( (*it)->name() == name )
             item = *it;
     }


More information about the Marble-commits mailing list