mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-09 00:35:20 -05:00
Switch back to using passing by value
This commit is contained in:
parent
1241783e5f
commit
393af833d4
@ -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;
|
||||
} );
|
||||
|
Loading…
x
Reference in New Issue
Block a user