[Marble-commits] KDE/kdeedu/marble/src/lib/geodata/scene
Jens-Michael Hoffmann
jensmh at gmx.de
Sat Jul 11 19:32:59 CEST 2009
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;
}
More information about the Marble-commits
mailing list