[QGIS Commit] r9441 - trunk/qgis/src/plugins/grass

svn_qgis at osgeo.org svn_qgis at osgeo.org
Mon Oct 6 13:59:51 EDT 2008


Author: timlinux
Date: 2008-10-06 13:59:51 -0400 (Mon, 06 Oct 2008)
New Revision: 9441

Modified:
   trunk/qgis/src/plugins/grass/qgsgrassmodule.cpp
Log:
give better names to some methods

Modified: trunk/qgis/src/plugins/grass/qgsgrassmodule.cpp
===================================================================
--- trunk/qgis/src/plugins/grass/qgsgrassmodule.cpp	2008-10-06 17:52:25 UTC (rev 9440)
+++ trunk/qgis/src/plugins/grass/qgsgrassmodule.cpp	2008-10-06 17:59:51 UTC (rev 9441)
@@ -599,7 +599,7 @@
       int nlayers = mCanvas->layerCount();
       for ( int i = 0; i < nlayers; i++ )
       {
-        QgsMapLayer *layer = mCanvas->getZpos( i );
+        QgsMapLayer *layer = mCanvas->layer( i );
 
         if ( layer->type() != QgsMapLayer::VECTOR ) continue;
 
@@ -671,7 +671,7 @@
       int nlayers = mCanvas->layerCount();
       for ( int i = 0; i < nlayers; i++ )
       {
-        QgsMapLayer *layer = mCanvas->getZpos( i );
+        QgsMapLayer *layer = mCanvas->layer( i );
 
         if ( layer->type() != QgsMapLayer::VECTOR ) continue;
 
@@ -2258,7 +2258,7 @@
   int nlayers = canvas->layerCount();
   for ( int i = 0; i < nlayers; i++ )
   {
-    QgsMapLayer *layer = canvas->getZpos( i );
+    QgsMapLayer *layer = canvas->layer( i );
 
     QgsDebugMsg( "layer->type() = " + QString::number( layer->type() ) );
 
@@ -2671,7 +2671,7 @@
   int nlayers = canvas->layerCount();
   for ( int i = 0; i < nlayers; i++ )
   {
-    QgsMapLayer *layer = canvas->getZpos( i );
+    QgsMapLayer *layer = canvas->layer( i );
 
     if ( mType == Ogr && layer->type() == QgsMapLayer::VECTOR )
     {



More information about the QGIS-commit mailing list