[Marble-commits] branches/KDE/4.3/kdeedu/marble/src/lib
Patrick Spendrin
ps_ml at gmx.de
Mon Jul 13 18:24:48 CEST 2009
SVN commit 995971 by sengels:
fix use of temporary object
M +3 -2 MarbleGeometryModel.cpp
--- branches/KDE/4.3/kdeedu/marble/src/lib/MarbleGeometryModel.cpp #995970:995971
@@ -51,8 +51,9 @@
if( !geometry ) return;
GeoDataMultiGeometry* multiGeometry = static_cast<GeoDataMultiGeometry*>( geometry );
- QVector<GeoDataGeometry>::iterator iterator = multiGeometry->vector().begin();
- QVector<GeoDataGeometry>::iterator end = multiGeometry->vector().end();
+ 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