Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Sep 22, 2015
1 parent 9438259 commit 32dc02c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/providers/grass/qgsgrassvectormap.cpp
Expand Up @@ -120,7 +120,7 @@ bool QgsGrassVectorMap::openMap()
{
QgsDebugMsg( "Cannot find GRASS vector" );
QgsGrass::unlock();
return -1;
return false;
}

// Read the time of vector dir before Vect_open_old, because it may take long time (when the vector
Expand Down Expand Up @@ -150,7 +150,7 @@ bool QgsGrassVectorMap::openMap()
{
QgsDebugMsg( "Cannot open GRASS vector head" );
QgsGrass::unlock();
return -1;
return false;
}
else if ( level == 1 )
{
Expand All @@ -161,7 +161,7 @@ bool QgsGrassVectorMap::openMap()
if ( ret == QMessageBox::Cancel )
{
QgsGrass::unlock();
return -1;
return false;
}
}

Expand All @@ -175,7 +175,7 @@ bool QgsGrassVectorMap::openMap()
{
QgsGrass::warning( QString( "Cannot open GRASS vector: %1" ).arg( e.what() ) );
QgsGrass::unlock();
return -1;
return false;
}

if ( level == 1 )
Expand All @@ -193,7 +193,7 @@ bool QgsGrassVectorMap::openMap()
{
QgsGrass::warning( QString( "Cannot build topology: %1" ).arg( e.what() ) );
QgsGrass::unlock();
return -1;
return false;
}
}
QgsDebugMsg( "GRASS map successfully opened" );
Expand Down

0 comments on commit 32dc02c

Please sign in to comment.