Navigation Menu

Skip to content

Commit

Permalink
qgsmssqltablemodel.cpp: make it obvious to cppcheck that we don't car…
Browse files Browse the repository at this point in the history
…e about the return value of .toInt()
  • Loading branch information
rouault committed May 29, 2020
1 parent 8eda3b2 commit 3551364
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/mssql/qgsmssqltablemodel.cpp
Expand Up @@ -371,7 +371,7 @@ QString QgsMssqlTableModel::layerURI( const QModelIndex &index, const QString &c

srid = index.sibling( index.row(), DbtmSrid ).data( Qt::DisplayRole ).toString();
bool ok;
srid.toInt( &ok );
( void )srid.toInt( &ok );
if ( !ok )
return QString();
}
Expand Down

0 comments on commit 3551364

Please sign in to comment.