Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Switch back to using passing by value
  • Loading branch information
wonder-sk committed Jun 7, 2019
1 parent 1241783 commit 393af83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/analysis/vector/qgsgeometrysnappersinglesource.cpp
Expand Up @@ -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;
} );
Expand Down

0 comments on commit 393af83

Please sign in to comment.