Skip to content

Commit

Permalink
Remove initialization when it's already in header
Browse files Browse the repository at this point in the history
  • Loading branch information
lbartoletti committed Oct 3, 2017
1 parent 08bbc90 commit 442341f
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/app/qgsmaptooladdcircle.cpp
Expand Up @@ -26,7 +26,6 @@
QgsMapToolAddCircle::QgsMapToolAddCircle( QgsMapToolCapture *parentTool, QgsMapCanvas *canvas, CaptureMode mode )
: QgsMapToolCapture( canvas, QgisApp::instance()->cadDockWidget(), mode )
, mParentTool( parentTool )
, mTempRubberBand( nullptr )
, mCircle( QgsCircle() )
{
clean();
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptooladdcircle.h
Expand Up @@ -46,7 +46,7 @@ class QgsMapToolAddCircle: public QgsMapToolCapture
/** The parent map tool, e.g. the add feature tool.
* Completed circle will be added to this tool by calling its addCurve() method.
* */
QgsMapToolCapture *mParentTool = nullptr;
QgsMapToolCapture *mParentTool;
//! Circle points (in map coordinates)
QgsPointSequence mPoints;
//! The rubberband to show the circular string currently working on
Expand Down
1 change: 0 additions & 1 deletion src/app/qgsmaptooladdellipse.cpp
Expand Up @@ -26,7 +26,6 @@
QgsMapToolAddEllipse::QgsMapToolAddEllipse( QgsMapToolCapture *parentTool, QgsMapCanvas *canvas, CaptureMode mode )
: QgsMapToolCapture( canvas, QgisApp::instance()->cadDockWidget(), mode )
, mParentTool( parentTool )
, mTempRubberBand( nullptr )
, mEllipse( QgsEllipse() )
{
clean();
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptooladdellipse.h
Expand Up @@ -41,7 +41,7 @@ class QgsMapToolAddEllipse: public QgsMapToolCapture
/** The parent map tool, e.g. the add feature tool.
* Completed ellipse will be added to this tool by calling its toLineString() method.
* */
QgsMapToolCapture *mParentTool = nullptr;
QgsMapToolCapture *mParentTool;
//! Ellipse points (in map coordinates)
QgsPointSequence mPoints;
//! The rubberband to show the ellipse currently working on
Expand Down
1 change: 0 additions & 1 deletion src/app/qgsmaptooladdrectangle.cpp
Expand Up @@ -27,7 +27,6 @@
QgsMapToolAddRectangle::QgsMapToolAddRectangle( QgsMapToolCapture *parentTool, QgsMapCanvas *canvas, CaptureMode mode )
: QgsMapToolCapture( canvas, QgisApp::instance()->cadDockWidget(), mode )
, mParentTool( parentTool )
, mTempRubberBand( nullptr )
, mRectangle( QgsRectangle() )
{
clean();
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptooladdrectangle.h
Expand Up @@ -44,7 +44,7 @@ class QgsMapToolAddRectangle: public QgsMapToolCapture
/** The parent map tool, e.g. the add feature tool.
* Completed regular shape will be added to this tool by calling its addCurve() method.
* */
QgsMapToolCapture *mParentTool = nullptr;
QgsMapToolCapture *mParentTool;
//! Regular Shape points (in map coordinates)
QgsPointSequence mPoints;
//! The rubberband to show the rectangle currently working on
Expand Down
1 change: 0 additions & 1 deletion src/app/qgsmaptooladdregularpolygon.cpp
Expand Up @@ -26,7 +26,6 @@
QgsMapToolAddRegularPolygon::QgsMapToolAddRegularPolygon( QgsMapToolCapture *parentTool, QgsMapCanvas *canvas, CaptureMode mode )
: QgsMapToolCapture( canvas, QgisApp::instance()->cadDockWidget(), mode )
, mParentTool( parentTool )
, mTempRubberBand( nullptr )
, mRegularPolygon( QgsRegularPolygon() )
{
clean();
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptooladdregularpolygon.h
Expand Up @@ -36,7 +36,7 @@ class QgsMapToolAddRegularPolygon: public QgsMapToolCapture
/** The parent map tool, e.g. the add feature tool.
* Completed regular polygon will be added to this tool by calling its addCurve() method.
* */
QgsMapToolCapture *mParentTool = nullptr;
QgsMapToolCapture *mParentTool;
//! Regular Shape points (in map coordinates)
QgsPointSequence mPoints;
//! The rubberband to show the regular polygon currently working on
Expand Down

0 comments on commit 442341f

Please sign in to comment.