Skip to content

Commit ef90e3d

Browse files
committedMar 8, 2023
Silence some unwanted clang-tidy warnings
1 parent 771c85a commit ef90e3d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
 

‎src/core/geometry/qgsmultilinestring.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ bool QgsMultiLineString::addGeometry( QgsAbstractGeometry *g )
148148
g->addMValue();
149149
else if ( !isMeasure() && g->isMeasure() )
150150
g->dropMValue();
151-
return QgsGeometryCollection::addGeometry( g ); // clazy:exclude=skipped-base-method
151+
return QgsGeometryCollection::addGeometry( g ); // NOLINT(bugprone-parent-virtual-call) clazy:exclude=skipped-base-method
152152
}
153153

154154
bool QgsMultiLineString::insertGeometry( QgsAbstractGeometry *g, int index )
@@ -159,7 +159,7 @@ bool QgsMultiLineString::insertGeometry( QgsAbstractGeometry *g, int index )
159159
return false;
160160
}
161161

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

165165
QgsMultiCurve *QgsMultiLineString::toCurveType() const

‎src/core/geometry/qgsmultipolygon.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ bool QgsMultiPolygon::addGeometry( QgsAbstractGeometry *g )
161161
else if ( !isMeasure() && g->isMeasure() )
162162
g->dropMValue();
163163

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

167167
bool QgsMultiPolygon::insertGeometry( QgsAbstractGeometry *g, int index )

‎src/gui/codeeditors/qgscodeeditor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ void QgsCodeEditor::keyPressEvent( QKeyEvent *event )
179179
if ( event->key() == Qt::Key_Escape )
180180
{
181181
// Shortcut QScintilla and redirect the event to the QWidget handler
182-
QWidget::keyPressEvent( event ); // clazy:exclude=skipped-base-method
182+
QWidget::keyPressEvent( event ); // NOLINT(bugprone-parent-virtual-call) clazy:exclude=skipped-base-method
183183
return;
184184
}
185185

0 commit comments

Comments
 (0)
Please sign in to comment.