Skip to content

Commit 442341f

Browse files
committedOct 3, 2017
Remove initialization when it's already in header
1 parent 08bbc90 commit 442341f

8 files changed

+4
-8
lines changed
 

‎src/app/qgsmaptooladdcircle.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
QgsMapToolAddCircle::QgsMapToolAddCircle( QgsMapToolCapture *parentTool, QgsMapCanvas *canvas, CaptureMode mode )
2727
: QgsMapToolCapture( canvas, QgisApp::instance()->cadDockWidget(), mode )
2828
, mParentTool( parentTool )
29-
, mTempRubberBand( nullptr )
3029
, mCircle( QgsCircle() )
3130
{
3231
clean();

‎src/app/qgsmaptooladdcircle.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class QgsMapToolAddCircle: public QgsMapToolCapture
4646
/** The parent map tool, e.g. the add feature tool.
4747
* Completed circle will be added to this tool by calling its addCurve() method.
4848
* */
49-
QgsMapToolCapture *mParentTool = nullptr;
49+
QgsMapToolCapture *mParentTool;
5050
//! Circle points (in map coordinates)
5151
QgsPointSequence mPoints;
5252
//! The rubberband to show the circular string currently working on

‎src/app/qgsmaptooladdellipse.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
QgsMapToolAddEllipse::QgsMapToolAddEllipse( QgsMapToolCapture *parentTool, QgsMapCanvas *canvas, CaptureMode mode )
2727
: QgsMapToolCapture( canvas, QgisApp::instance()->cadDockWidget(), mode )
2828
, mParentTool( parentTool )
29-
, mTempRubberBand( nullptr )
3029
, mEllipse( QgsEllipse() )
3130
{
3231
clean();

‎src/app/qgsmaptooladdellipse.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class QgsMapToolAddEllipse: public QgsMapToolCapture
4141
/** The parent map tool, e.g. the add feature tool.
4242
* Completed ellipse will be added to this tool by calling its toLineString() method.
4343
* */
44-
QgsMapToolCapture *mParentTool = nullptr;
44+
QgsMapToolCapture *mParentTool;
4545
//! Ellipse points (in map coordinates)
4646
QgsPointSequence mPoints;
4747
//! The rubberband to show the ellipse currently working on

‎src/app/qgsmaptooladdrectangle.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
QgsMapToolAddRectangle::QgsMapToolAddRectangle( QgsMapToolCapture *parentTool, QgsMapCanvas *canvas, CaptureMode mode )
2828
: QgsMapToolCapture( canvas, QgisApp::instance()->cadDockWidget(), mode )
2929
, mParentTool( parentTool )
30-
, mTempRubberBand( nullptr )
3130
, mRectangle( QgsRectangle() )
3231
{
3332
clean();

‎src/app/qgsmaptooladdrectangle.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class QgsMapToolAddRectangle: public QgsMapToolCapture
4444
/** The parent map tool, e.g. the add feature tool.
4545
* Completed regular shape will be added to this tool by calling its addCurve() method.
4646
* */
47-
QgsMapToolCapture *mParentTool = nullptr;
47+
QgsMapToolCapture *mParentTool;
4848
//! Regular Shape points (in map coordinates)
4949
QgsPointSequence mPoints;
5050
//! The rubberband to show the rectangle currently working on

‎src/app/qgsmaptooladdregularpolygon.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
QgsMapToolAddRegularPolygon::QgsMapToolAddRegularPolygon( QgsMapToolCapture *parentTool, QgsMapCanvas *canvas, CaptureMode mode )
2727
: QgsMapToolCapture( canvas, QgisApp::instance()->cadDockWidget(), mode )
2828
, mParentTool( parentTool )
29-
, mTempRubberBand( nullptr )
3029
, mRegularPolygon( QgsRegularPolygon() )
3130
{
3231
clean();

‎src/app/qgsmaptooladdregularpolygon.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class QgsMapToolAddRegularPolygon: public QgsMapToolCapture
3636
/** The parent map tool, e.g. the add feature tool.
3737
* Completed regular polygon will be added to this tool by calling its addCurve() method.
3838
* */
39-
QgsMapToolCapture *mParentTool = nullptr;
39+
QgsMapToolCapture *mParentTool;
4040
//! Regular Shape points (in map coordinates)
4141
QgsPointSequence mPoints;
4242
//! The rubberband to show the regular polygon currently working on

0 commit comments

Comments
 (0)
Please sign in to comment.