Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
QgsVertexTool::setHighlightedVertices(): silence false positive cppch…
…eck warning about assert with side effect
  • Loading branch information
rouault committed May 29, 2020
1 parent f9610ea commit cf117d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/vertextool/qgsvertextool.cpp
Expand Up @@ -2418,6 +2418,7 @@ void QgsVertexTool::setHighlightedVertices( const QList<Vertex> &listVertices, H
for ( const Vertex &vertex : qgis::as_const( mSelectedVertices ) )
{
// we should never be able to select vertices that are not from the locked feature
// cppcheck-suppress assertWithSideEffect
Q_ASSERT( mLockedFeature->featureId() == vertex.fid && mLockedFeature->layer() == vertex.layer );
mLockedFeature->selectVertex( vertex.vertexId );
}
Expand Down

0 comments on commit cf117d7

Please sign in to comment.