[Marble-commits] KDE/kdeedu/marble/src/lib
Patrick Spendrin
ps_ml at gmx.de
Tue Jul 14 00:04:59 CEST 2009
SVN commit 996145 by sengels:
fix iterators
M +4 -4 MarbleGeometryModel.cpp
--- trunk/KDE/kdeedu/marble/src/lib/MarbleGeometryModel.cpp #996144:996145
@@ -51,10 +51,10 @@
if( !geometry ) return;
GeoDataMultiGeometry* multiGeometry = static_cast<GeoDataMultiGeometry*>( geometry );
- QVector<GeoDataGeometry>::iterator iterator = multiGeometry->vector().begin();
- QVector<GeoDataGeometry>::iterator end = multiGeometry->vector().end();
-
- for(; iterator != end; iterator++ ) {
+ QVector<GeoDataGeometry> & vec = multiGeometry->vector();
+ QVector<GeoDataGeometry>::iterator iterator = vec.begin();
+ QVector<GeoDataGeometry>::iterator end = vec.end();
+ for(; iterator != end; ++iterator ) {
m_parent.insert( iterator, geometry );
if( iterator->geometryId() == GeoDataMultiGeometryId ) mapGeometry( iterator );
}
More information about the Marble-commits
mailing list