[Marble-commits] KDE/kdeedu/marble/src/lib

Jens-Michael Hoffmann jensmh at gmx.de
Tue Aug 18 19:57:36 CEST 2009


SVN commit 1013046 by jmhoffmann:

Change iterator variable name from "pos" (back) to "it" as suggested by tackat as inside KDE or Qt "it" seems to be more often used.


 M  +6 -6      TileLoader.cpp  


--- trunk/KDE/kdeedu/marble/src/lib/TileLoader.cpp #1013045:1013046
@@ -131,10 +131,10 @@
 
 void TileLoader::resetTilehash()
 {
-    QHash<TileId, TextureTile*>::const_iterator pos = d->m_tilesOnDisplay.constBegin();
+    QHash<TileId, TextureTile*>::const_iterator it = d->m_tilesOnDisplay.constBegin();
     QHash<TileId, TextureTile*>::const_iterator const end = d->m_tilesOnDisplay.constEnd();
-    for (; pos != end; ++pos ) {
-        pos.value()->setUsed( false );
+    for (; it != end; ++it ) {
+        it.value()->setUsed( false );
     }
 }
 
@@ -302,10 +302,10 @@
 
     bool ok = true;
 
-    QStringList::const_iterator pos = leveldirs.constBegin();
+    QStringList::const_iterator it = leveldirs.constBegin();
     QStringList::const_iterator const end = leveldirs.constEnd();
-    for (; pos != end; ++pos ) {
-        int value = (*pos).toInt( &ok, 10 );
+    for (; it != end; ++it ) {
+        int value = (*it).toInt( &ok, 10 );
         if ( ok && value > maxtilelevel )
             maxtilelevel = value;
     }


More information about the Marble-commits mailing list