File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ bool QgsGrassVectorMap::openMap()
120120 {
121121 QgsDebugMsg ( " Cannot find GRASS vector" );
122122 QgsGrass::unlock ();
123- return - 1 ;
123+ return false ;
124124 }
125125
126126 // Read the time of vector dir before Vect_open_old, because it may take long time (when the vector
@@ -150,7 +150,7 @@ bool QgsGrassVectorMap::openMap()
150150 {
151151 QgsDebugMsg ( " Cannot open GRASS vector head" );
152152 QgsGrass::unlock ();
153- return - 1 ;
153+ return false ;
154154 }
155155 else if ( level == 1 )
156156 {
@@ -161,7 +161,7 @@ bool QgsGrassVectorMap::openMap()
161161 if ( ret == QMessageBox::Cancel )
162162 {
163163 QgsGrass::unlock ();
164- return - 1 ;
164+ return false ;
165165 }
166166 }
167167
@@ -175,7 +175,7 @@ bool QgsGrassVectorMap::openMap()
175175 {
176176 QgsGrass::warning ( QString ( " Cannot open GRASS vector: %1" ).arg ( e.what () ) );
177177 QgsGrass::unlock ();
178- return - 1 ;
178+ return false ;
179179 }
180180
181181 if ( level == 1 )
@@ -193,7 +193,7 @@ bool QgsGrassVectorMap::openMap()
193193 {
194194 QgsGrass::warning ( QString ( " Cannot build topology: %1" ).arg ( e.what () ) );
195195 QgsGrass::unlock ();
196- return - 1 ;
196+ return false ;
197197 }
198198 }
199199 QgsDebugMsg ( " GRASS map successfully opened" );
You can’t perform that action at this time.
0 commit comments