Navigation Menu

Skip to content

Commit

Permalink
give better names to some methods
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@9441 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Oct 6, 2008
1 parent ade1226 commit 6b8d838
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/plugins/grass/qgsgrassmodule.cpp
Expand Up @@ -599,7 +599,7 @@ void QgsGrassModuleStandardOptions::freezeOutput()
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;

Expand Down Expand Up @@ -671,7 +671,7 @@ void QgsGrassModuleStandardOptions::thawOutput()
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;

Expand Down Expand Up @@ -2258,7 +2258,7 @@ void QgsGrassModuleInput::updateQgisLayers()
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() ) );

Expand Down Expand Up @@ -2671,7 +2671,7 @@ void QgsGrassModuleGdalInput::updateQgisLayers()
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 )
{
Expand Down

0 comments on commit 6b8d838

Please sign in to comment.