Navigation Menu

Skip to content

Commit

Permalink
Avoid casting int to bool
Browse files Browse the repository at this point in the history
Using clang-tidy modernize-use-bool-literals
  • Loading branch information
nyalldawson committed Sep 11, 2017
1 parent 851c081 commit 904aaef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/spatialite/qgsspatialiteprovider.cpp
Expand Up @@ -3687,7 +3687,7 @@ QSet<QVariant> QgsSpatiaLiteProvider::uniqueValues( int index, int limit ) const
return uniqueValues;
}

while ( 1 )
while ( true )
{
// this one is an infinitive loop, intended to fetch any row
int ret = sqlite3_step( stmt );
Expand Down

0 comments on commit 904aaef

Please sign in to comment.