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

List:       kde-commits
Subject:    KDE/kdeedu/marble/src/lib/geodata/scene
From:       Jens-Michael Hoffmann <jensmh () gmx ! de>
Date:       2009-07-11 17:32:59
Message-ID: 1247333579.667474.1320.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 995008 by jmhoffmann:

Cache end iterator.


 M  +2 -1      GeoSceneLayer.cpp  


--- trunk/KDE/kdeedu/marble/src/lib/geodata/scene/GeoSceneLayer.cpp #995007:995008
@@ -100,7 +100,8 @@
     GeoSceneAbstractDataset* dataset = 0;
 
     QVector<GeoSceneAbstractDataset*>::const_iterator it = m_datasets.constBegin();
-    for (; it != m_datasets.constEnd(); ++it) {
+    QVector<GeoSceneAbstractDataset*>::const_iterator end = m_datasets.constEnd();
+    for (; it != end; ++it) {
         if ( (*it)->name() == name )
             dataset = *it;
     }
[prev in list] [next in list] [prev in thread] [next in thread] 

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