From 393af833d4f3bf1420eb55141268110735755cba Mon Sep 17 00:00:00 2001 From: Martin Dobias Date: Fri, 7 Jun 2019 09:18:07 +0200 Subject: [PATCH] Switch back to using passing by value --- src/analysis/vector/qgsgeometrysnappersinglesource.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/analysis/vector/qgsgeometrysnappersinglesource.cpp b/src/analysis/vector/qgsgeometrysnappersinglesource.cpp index 1805d32aca3..964cbf14a20 100644 --- a/src/analysis/vector/qgsgeometrysnappersinglesource.cpp +++ b/src/analysis/vector/qgsgeometrysnappersinglesource.cpp @@ -244,7 +244,7 @@ static bool snapLineString( QgsLineString *linestring, QgsSpatialIndex &index, Q if ( !newVerticesAlongSegment.isEmpty() ) { // sort by distance along the segment - std::sort( newVerticesAlongSegment.begin(), newVerticesAlongSegment.end(), []( const AnchorAlongSegment & p1, const AnchorAlongSegment & p2 ) + std::sort( newVerticesAlongSegment.begin(), newVerticesAlongSegment.end(), []( AnchorAlongSegment p1, AnchorAlongSegment p2 ) { return p1.along < p2.along; } );