Skip to content
Permalink
Browse files

Remove initialization when it's already in header

  • Loading branch information
lbartoletti committed Oct 3, 2017
1 parent 08bbc90 commit 442341f9956201297705030b10b7d5880021eb4c
@@ -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();
@@ -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
@@ -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();
@@ -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
@@ -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();
@@ -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
@@ -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();
@@ -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

0 comments on commit 442341f

Please sign in to comment.
You can’t perform that action at this time.