Skip to content

Commit

Permalink
Oracle provider: make it obvious to cppcheck that we don't care about…
Browse files Browse the repository at this point in the history
… the return value of .toInt()
  • Loading branch information
rouault committed May 29, 2020
1 parent 3551364 commit b29d3ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/providers/oracle/qgsoraclesourceselect.cpp
Expand Up @@ -124,7 +124,7 @@ void QgsOracleSourceSelectDelegate::setEditorData( QWidget *editor, const QModel
if ( le )
{
bool ok;
value.toInt( &ok );
( void )value.toInt( &ok );
if ( index.column() == QgsOracleTableModel::DbtmSrid && !ok )
value.clear();

Expand Down
2 changes: 1 addition & 1 deletion src/providers/oracle/qgsoracletablemodel.cpp
Expand Up @@ -334,7 +334,7 @@ QString QgsOracleTableModel::layerURI( const QModelIndex &index, const QgsDataSo

srid = index.sibling( index.row(), DbtmSrid ).data( Qt::DisplayRole ).toString();
bool ok;
srid.toInt( &ok );
( void )srid.toInt( &ok );
if ( !ok )
{
QgsDebugMsg( QStringLiteral( "srid not numeric" ) );
Expand Down

0 comments on commit b29d3ef

Please sign in to comment.