Switch back to using passing by value

This commit is contained in:
Martin Dobias 2019-06-07 09:18:07 +02:00
parent 1241783e5f
commit 393af833d4

View File

@ -244,7 +244,7 @@ static bool snapLineString( QgsLineString *linestring, QgsSpatialIndex &index, Q
if ( !newVerticesAlongSegment.isEmpty() ) if ( !newVerticesAlongSegment.isEmpty() )
{ {
// sort by distance along the segment // 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; return p1.along < p2.along;
} ); } );