Skip to content

Commit f94bb6f

Browse files
committed
Fix indentation
1 parent 4ca08a3 commit f94bb6f

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

src/plugins/georeferencer/qgsmapcoordsdialog.h

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,19 @@ class QgsGeorefMapToolEmitPoint : public QgsMapTool
3737

3838
virtual ~QgsGeorefMapToolEmitPoint()
3939
{
40-
delete mSnappingMarker;
41-
mSnappingMarker = nullptr;
40+
delete mSnappingMarker;
41+
mSnappingMarker = nullptr;
4242
}
4343

44-
void canvasMoveEvent(QgsMapMouseEvent *e) override
44+
void canvasMoveEvent( QgsMapMouseEvent *e ) override
4545
{
46-
MappedPoint mapped = mapPoint(e);
46+
MappedPoint mapped = mapPoint( e );
4747

48-
if ( !mapped.snapped )
49-
{
50-
delete mSnappingMarker;
51-
mSnappingMarker = nullptr;
52-
}
48+
if ( !mapped.snapped )
49+
{
50+
delete mSnappingMarker;
51+
mSnappingMarker = nullptr;
52+
}
5353
else
5454
{
5555
if ( !mSnappingMarker )
@@ -65,7 +65,7 @@ class QgsGeorefMapToolEmitPoint : public QgsMapTool
6565

6666
void canvasPressEvent( QgsMapMouseEvent * e ) override
6767
{
68-
MappedPoint mapped = mapPoint(e);
68+
MappedPoint mapped = mapPoint( e );
6969
emit canvasClicked( mapped.point, e->button() );
7070
}
7171

@@ -90,20 +90,20 @@ class QgsGeorefMapToolEmitPoint : public QgsMapTool
9090
private:
9191
struct MappedPoint
9292
{
93-
QgsPoint point;
94-
bool snapped = false;
93+
QgsPoint point;
94+
bool snapped = false;
9595
};
9696

97-
MappedPoint mapPoint(QMouseEvent *e)
97+
MappedPoint mapPoint( QMouseEvent *e )
9898
{
99-
QgsPoint pnt = toMapCoordinates( e->pos() );
100-
QgsSnappingUtils* snappingUtils = canvas()->snappingUtils();
101-
auto match = snappingUtils->snapToMap( pnt );
102-
103-
MappedPoint ret;
104-
ret.snapped = match.isValid();
105-
ret.point = ret.snapped ? match.point() : pnt;
106-
return ret;
99+
QgsPoint pnt = toMapCoordinates( e->pos() );
100+
QgsSnappingUtils* snappingUtils = canvas()->snappingUtils();
101+
auto match = snappingUtils->snapToMap( pnt );
102+
103+
MappedPoint ret;
104+
ret.snapped = match.isValid();
105+
ret.point = ret.snapped ? match.point() : pnt;
106+
return ret;
107107
}
108108

109109
QgsVertexMarker* mSnappingMarker = nullptr;

0 commit comments

Comments
 (0)