Skip to content

Commit

Permalink
delimitedtext: make it obvious to cppcheck that we don't care about t…
Browse files Browse the repository at this point in the history
…he return value of various .toXXX() methods
  • Loading branch information
rouault committed May 29, 2020
1 parent 17a272a commit c3acfe3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/providers/delimitedtext/qgsdelimitedtextprovider.cpp
Expand Up @@ -601,12 +601,12 @@ void QgsDelimitedTextProvider::scanFile( bool buildIndexes )

if ( couldBeInt[i] )
{
value.toInt( &couldBeInt[i] );
( void )value.toInt( &couldBeInt[i] );
}

if ( couldBeLongLong[i] && ! couldBeInt[i] )
{
value.toLongLong( &couldBeLongLong[i] );
( void )value.toLongLong( &couldBeLongLong[i] );
}

if ( couldBeDouble[i] && ! couldBeLongLong[i] )
Expand All @@ -615,7 +615,7 @@ void QgsDelimitedTextProvider::scanFile( bool buildIndexes )
{
value.replace( mDecimalPoint, QLatin1String( "." ) );
}
value.toDouble( &couldBeDouble[i] );
( void )value.toDouble( &couldBeDouble[i] );
}
}
}
Expand Down
Expand Up @@ -509,7 +509,7 @@ void QgsDelimitedTextSourceSelect::updateFieldLists()
}
else
{
value.toDouble( &ok );
( void )value.toDouble( &ok );
}
isValidCoordinate[i] = ok;
}
Expand Down

0 comments on commit c3acfe3

Please sign in to comment.