mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-10 00:13:55 -04: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() )
|
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;
|
||||||
} );
|
} );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user