Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a82da05

Browse files
committedMar 19, 2023
fix clang-tidy
1 parent e4d80e0 commit a82da05

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed
 

‎src/app/mesh/qgsmaptooleditmeshframe.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1626,7 +1626,7 @@ bool QgsMapToolEditMeshFrame::isFaceSelected( int faceIndex )
16261626
return true;
16271627
}
16281628

1629-
void QgsMapToolEditMeshFrame::setSelectedVertices( const QList<int> newSelectedVertices, Qgis::SelectBehavior behavior )
1629+
void QgsMapToolEditMeshFrame::setSelectedVertices( const QList<int> &newSelectedVertices, Qgis::SelectBehavior behavior )
16301630
{
16311631
if ( mSelectedVertices.isEmpty() )
16321632
{
@@ -1662,7 +1662,7 @@ void QgsMapToolEditMeshFrame::setSelectedVertices( const QList<int> newSelectedV
16621662
prepareSelection();
16631663
}
16641664

1665-
void QgsMapToolEditMeshFrame::setSelectedFaces( const QList<int> newSelectedFaces, Qgis::SelectBehavior behavior )
1665+
void QgsMapToolEditMeshFrame::setSelectedFaces( const QList<int> &newSelectedFaces, Qgis::SelectBehavior behavior )
16661666
{
16671667
bool removeFaces = false;
16681668

@@ -1948,7 +1948,6 @@ void QgsMapToolEditMeshFrame::onUndoRedo()
19481948
mCadDockWidget->setEnabledZ( mCadDockWidget->cadEnabled() );
19491949
break;
19501950
case ForceByLines:
1951-
break;
19521951
case Selecting:
19531952
case SelectingByPolygon:
19541953
break;

‎src/app/mesh/qgsmaptooleditmeshframe.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@ class APP_EXPORT QgsMapToolEditMeshFrame : public QgsMapToolAdvancedDigitizing
229229
void addNewSelectedVertex( int vertexIndex );
230230
void removeFromSelection( int vertexIndex );
231231
bool isFaceSelected( int faceIndex );
232-
void setSelectedVertices( const QList<int> newSelectedVertices, Qgis::SelectBehavior behavior );
233-
void setSelectedFaces( const QList<int> newSelectedFaces, Qgis::SelectBehavior behavior );
232+
void setSelectedVertices( const QList<int> &newSelectedVertices, Qgis::SelectBehavior behavior );
233+
void setSelectedFaces( const QList<int> &newSelectedFaces, Qgis::SelectBehavior behavior );
234234
void selectByGeometry( const QgsGeometry &geometry, Qt::KeyboardModifiers modifiers );
235235
void selectTouchedByGeometry( const QgsGeometry &geometry, Qgis::SelectBehavior behavior );
236236
void selectContainedByGeometry( const QgsGeometry &geometry, Qgis::SelectBehavior behavior );

0 commit comments

Comments
 (0)
Please sign in to comment.