Skip to content
Permalink
Browse files

Clean code

  • Loading branch information
m-kuhn committed Aug 26, 2018
1 parent 43afffc commit bc3a0c0033604140d5dcf59909fe7d15569603bb
Showing with 2 additions and 4 deletions.
  1. +1 −3 src/gui/qgsmaptoolcapture.cpp
  2. +1 −1 src/gui/qgsmaptoolcapture.h
@@ -41,10 +41,8 @@
QgsMapToolCapture::QgsMapToolCapture( QgsMapCanvas *canvas, QgsAdvancedDigitizingDockWidget *cadDockWidget, CaptureMode mode )
: QgsMapToolAdvancedDigitizing( canvas, cadDockWidget )
, mCaptureMode( mode )
, mCaptureModeFromLayer( mode == CaptureNone )
{
mCaptureModeFromLayer = mode == CaptureNone;
mCapturing = false;

mSnapIndicator.reset( new QgsSnapIndicator( canvas ) );

setCursor( QgsApplication::getThemeCursor( QgsApplication::Cursor::CapturePoint ) );
@@ -249,7 +249,7 @@ class GUI_EXPORT QgsMapToolCapture : public QgsMapToolAdvancedDigitizing
CaptureMode mCaptureMode;

//! Flag to indicate a map canvas capture operation is taking place
bool mCapturing;
bool mCapturing = false;

//! Rubber band for polylines and polygons
QgsRubberBand *mRubberBand = nullptr;

0 comments on commit bc3a0c0

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