Remove initialization when it's already in header

This commit is contained in:
lbartoletti 2017-10-03 17:50:04 +02:00
parent 08bbc90c9d
commit 442341f995
8 changed files with 4 additions and 8 deletions

View File

@ -26,7 +26,6 @@
QgsMapToolAddCircle::QgsMapToolAddCircle( QgsMapToolCapture *parentTool, QgsMapCanvas *canvas, CaptureMode mode ) QgsMapToolAddCircle::QgsMapToolAddCircle( QgsMapToolCapture *parentTool, QgsMapCanvas *canvas, CaptureMode mode )
: QgsMapToolCapture( canvas, QgisApp::instance()->cadDockWidget(), mode ) : QgsMapToolCapture( canvas, QgisApp::instance()->cadDockWidget(), mode )
, mParentTool( parentTool ) , mParentTool( parentTool )
, mTempRubberBand( nullptr )
, mCircle( QgsCircle() ) , mCircle( QgsCircle() )
{ {
clean(); clean();

View File

@ -46,7 +46,7 @@ class QgsMapToolAddCircle: public QgsMapToolCapture
/** The parent map tool, e.g. the add feature tool. /** The parent map tool, e.g. the add feature tool.
* Completed circle will be added to this tool by calling its addCurve() method. * Completed circle will be added to this tool by calling its addCurve() method.
* */ * */
QgsMapToolCapture *mParentTool = nullptr; QgsMapToolCapture *mParentTool;
//! Circle points (in map coordinates) //! Circle points (in map coordinates)
QgsPointSequence mPoints; QgsPointSequence mPoints;
//! The rubberband to show the circular string currently working on //! The rubberband to show the circular string currently working on

View File

@ -26,7 +26,6 @@
QgsMapToolAddEllipse::QgsMapToolAddEllipse( QgsMapToolCapture *parentTool, QgsMapCanvas *canvas, CaptureMode mode ) QgsMapToolAddEllipse::QgsMapToolAddEllipse( QgsMapToolCapture *parentTool, QgsMapCanvas *canvas, CaptureMode mode )
: QgsMapToolCapture( canvas, QgisApp::instance()->cadDockWidget(), mode ) : QgsMapToolCapture( canvas, QgisApp::instance()->cadDockWidget(), mode )
, mParentTool( parentTool ) , mParentTool( parentTool )
, mTempRubberBand( nullptr )
, mEllipse( QgsEllipse() ) , mEllipse( QgsEllipse() )
{ {
clean(); clean();

View File

@ -41,7 +41,7 @@ class QgsMapToolAddEllipse: public QgsMapToolCapture
/** The parent map tool, e.g. the add feature tool. /** The parent map tool, e.g. the add feature tool.
* Completed ellipse will be added to this tool by calling its toLineString() method. * Completed ellipse will be added to this tool by calling its toLineString() method.
* */ * */
QgsMapToolCapture *mParentTool = nullptr; QgsMapToolCapture *mParentTool;
//! Ellipse points (in map coordinates) //! Ellipse points (in map coordinates)
QgsPointSequence mPoints; QgsPointSequence mPoints;
//! The rubberband to show the ellipse currently working on //! The rubberband to show the ellipse currently working on

View File

@ -27,7 +27,6 @@
QgsMapToolAddRectangle::QgsMapToolAddRectangle( QgsMapToolCapture *parentTool, QgsMapCanvas *canvas, CaptureMode mode ) QgsMapToolAddRectangle::QgsMapToolAddRectangle( QgsMapToolCapture *parentTool, QgsMapCanvas *canvas, CaptureMode mode )
: QgsMapToolCapture( canvas, QgisApp::instance()->cadDockWidget(), mode ) : QgsMapToolCapture( canvas, QgisApp::instance()->cadDockWidget(), mode )
, mParentTool( parentTool ) , mParentTool( parentTool )
, mTempRubberBand( nullptr )
, mRectangle( QgsRectangle() ) , mRectangle( QgsRectangle() )
{ {
clean(); clean();

View File

@ -44,7 +44,7 @@ class QgsMapToolAddRectangle: public QgsMapToolCapture
/** The parent map tool, e.g. the add feature tool. /** The parent map tool, e.g. the add feature tool.
* Completed regular shape will be added to this tool by calling its addCurve() method. * 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) //! Regular Shape points (in map coordinates)
QgsPointSequence mPoints; QgsPointSequence mPoints;
//! The rubberband to show the rectangle currently working on //! The rubberband to show the rectangle currently working on

View File

@ -26,7 +26,6 @@
QgsMapToolAddRegularPolygon::QgsMapToolAddRegularPolygon( QgsMapToolCapture *parentTool, QgsMapCanvas *canvas, CaptureMode mode ) QgsMapToolAddRegularPolygon::QgsMapToolAddRegularPolygon( QgsMapToolCapture *parentTool, QgsMapCanvas *canvas, CaptureMode mode )
: QgsMapToolCapture( canvas, QgisApp::instance()->cadDockWidget(), mode ) : QgsMapToolCapture( canvas, QgisApp::instance()->cadDockWidget(), mode )
, mParentTool( parentTool ) , mParentTool( parentTool )
, mTempRubberBand( nullptr )
, mRegularPolygon( QgsRegularPolygon() ) , mRegularPolygon( QgsRegularPolygon() )
{ {
clean(); clean();

View File

@ -36,7 +36,7 @@ class QgsMapToolAddRegularPolygon: public QgsMapToolCapture
/** The parent map tool, e.g. the add feature tool. /** The parent map tool, e.g. the add feature tool.
* Completed regular polygon will be added to this tool by calling its addCurve() method. * 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) //! Regular Shape points (in map coordinates)
QgsPointSequence mPoints; QgsPointSequence mPoints;
//! The rubberband to show the regular polygon currently working on //! The rubberband to show the regular polygon currently working on