Skip to content

Commit 22a4deb

Browse files
committed
style
1 parent 77c04ad commit 22a4deb

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

app/maptools/recordingmaptool.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -712,18 +712,18 @@ void RecordingMapTool::collectVertices()
712712
int offsetId = 1;
713713
bool foundVertexAtDifferentPositions = false;
714714
// While the first and next vertex are the same position we are looking for the next vertex
715-
while (!foundVertexAtDifferentPositions && offsetId < vertexCount)
715+
while ( !foundVertexAtDifferentPositions && offsetId < vertexCount )
716716
{
717-
id = QgsVertexId ( vertexId.part, vertexId.ring, offsetId );
717+
id = QgsVertexId( vertexId.part, vertexId.ring, offsetId );
718718

719-
if (geom->vertexAt(vertexId) != geom->vertexAt(id))
719+
if ( geom->vertexAt( vertexId ) != geom->vertexAt( id ) )
720720
{
721721
foundVertexAtDifferentPositions = true;
722722
}
723723
offsetId++;
724724
}
725-
726-
if (foundVertexAtDifferentPositions)
725+
726+
if ( foundVertexAtDifferentPositions )
727727
{
728728
// start handle point
729729
QgsPoint handle = handlePoint( geom->vertexAt( id ), geom->vertexAt( vertexId ) );

app/test/testmaptools.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -954,11 +954,11 @@ void TestMapTools::testAddVertexLineLayer()
954954
mapTool.addPoint( pointsToAdd[0] );
955955

956956
QVERIFY( mapTool.handles().isEmpty() );
957-
957+
958958
mapTool.addPoint( pointsToAdd[1] );
959959

960-
QCOMPARE( mapTool.handles().vertexAt(0).asWkt( 14 ), "Point (-96.22182942132511 22.34151145046518)" );
961-
QCOMPARE( mapTool.handles().vertexAt(1), pointsToAdd[0]);
960+
QCOMPARE( mapTool.handles().vertexAt( 0 ).asWkt( 14 ), "Point (-96.22182942132511 22.34151145046518)" );
961+
QCOMPARE( mapTool.handles().vertexAt( 1 ), pointsToAdd[0] );
962962

963963
delete project;
964964
delete lineLayer;

0 commit comments

Comments
 (0)