Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix cppcheck issues in HANA provider
  • Loading branch information
Maksim Rylov authored and mrylov committed Dec 7, 2020
1 parent 238db50 commit 04c00e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/providers/hana/qgshanasourceselect.cpp
Expand Up @@ -187,7 +187,7 @@ void QgsHanaSourceSelectDelegate::setEditorData( QWidget *editor, const QModelIn
if ( le )
{
bool ok;
value.toInt( &ok );
( void )value.toInt( &ok );
if ( index.column() == QgsHanaTableModel::DbtmSrid && !ok )
value.clear();

Expand Down
2 changes: 1 addition & 1 deletion src/providers/hana/qgshanatablemodel.cpp
Expand Up @@ -312,7 +312,7 @@ QString QgsHanaTableModel::layerURI( const QModelIndex &index, const QString &co

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 04c00e6

Please sign in to comment.