Skip to content

Commit

Permalink
qgsfeaturelistview.cpp: silence false positive cppcheck warning about…
Browse files Browse the repository at this point in the history
… assert with side effect
  • Loading branch information
rouault committed May 29, 2020
1 parent 55627bd commit d482c1a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/attributetable/qgsfeaturelistview.cpp
Expand Up @@ -212,6 +212,7 @@ void QgsFeatureListView::setEditSelection( const QModelIndex &index, QItemSelect
bool ok = true;
emit aboutToChangeEditSelection( ok );

// cppcheck-suppress assertWithSideEffect
Q_ASSERT( index.model() == mModel->masterModel() || !index.isValid() );

if ( ok )
Expand Down

0 comments on commit d482c1a

Please sign in to comment.