[Marble-commits] KDE/kdeedu/marble/src/lib/geodata/scene
Jens-Michael Hoffmann
jensmh at gmx.de
Fri Jul 10 17:09:26 CEST 2009
SVN commit 994422 by jmhoffmann:
- Remove redundant assignment to start iterator,
- cache end iterator.
M +2 -1 GeoSceneLegend.cpp
--- trunk/KDE/kdeedu/marble/src/lib/geodata/scene/GeoSceneLegend.cpp #994421:994422
@@ -80,7 +80,8 @@
GeoSceneSection* section = 0;
QVector<GeoSceneSection*>::const_iterator it = d->m_sections.constBegin();
- for (it = d->m_sections.constBegin(); it != d->m_sections.constEnd(); ++it) {
+ QVector<GeoSceneSection*>::const_iterator end = d->m_sections.constEnd();
+ for (; it != end; ++it) {
if ( (*it)->name() == name )
section = *it;
}
More information about the Marble-commits
mailing list