Skip to content

Commit

Permalink
Silence some unwanted clang-tidy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson authored and github-actions[bot] committed Mar 8, 2023
1 parent 56d1e71 commit 50bdb22
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/core/geometry/qgsmultilinestring.cpp
Expand Up @@ -148,7 +148,7 @@ bool QgsMultiLineString::addGeometry( QgsAbstractGeometry *g )
g->addMValue();
else if ( !isMeasure() && g->isMeasure() )
g->dropMValue();
return QgsGeometryCollection::addGeometry( g ); // clazy:exclude=skipped-base-method
return QgsGeometryCollection::addGeometry( g ); // NOLINT(bugprone-parent-virtual-call) clazy:exclude=skipped-base-method
}

bool QgsMultiLineString::insertGeometry( QgsAbstractGeometry *g, int index )
Expand All @@ -159,7 +159,7 @@ bool QgsMultiLineString::insertGeometry( QgsAbstractGeometry *g, int index )
return false;
}

return QgsMultiCurve::insertGeometry( g, index ); // clazy:exclude=skipped-base-method
return QgsMultiCurve::insertGeometry( g, index );
}

QgsMultiCurve *QgsMultiLineString::toCurveType() const
Expand Down
2 changes: 1 addition & 1 deletion src/core/geometry/qgsmultipolygon.cpp
Expand Up @@ -161,7 +161,7 @@ bool QgsMultiPolygon::addGeometry( QgsAbstractGeometry *g )
else if ( !isMeasure() && g->isMeasure() )
g->dropMValue();

return QgsGeometryCollection::addGeometry( g ); // clazy:exclude=skipped-base-method
return QgsGeometryCollection::addGeometry( g ); // NOLINT(bugprone-parent-virtual-call) clazy:exclude=skipped-base-method
}

bool QgsMultiPolygon::insertGeometry( QgsAbstractGeometry *g, int index )
Expand Down
2 changes: 1 addition & 1 deletion src/gui/codeeditors/qgscodeeditor.cpp
Expand Up @@ -179,7 +179,7 @@ void QgsCodeEditor::keyPressEvent( QKeyEvent *event )
if ( event->key() == Qt::Key_Escape )
{
// Shortcut QScintilla and redirect the event to the QWidget handler
QWidget::keyPressEvent( event ); // clazy:exclude=skipped-base-method
QWidget::keyPressEvent( event ); // NOLINT(bugprone-parent-virtual-call) clazy:exclude=skipped-base-method
return;
}

Expand Down

0 comments on commit 50bdb22

Please sign in to comment.