Skip to content

Commit bc3a0c0

Browse files
committed
Clean code
1 parent 43afffc commit bc3a0c0

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/gui/qgsmaptoolcapture.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,8 @@
4141
QgsMapToolCapture::QgsMapToolCapture( QgsMapCanvas *canvas, QgsAdvancedDigitizingDockWidget *cadDockWidget, CaptureMode mode )
4242
: QgsMapToolAdvancedDigitizing( canvas, cadDockWidget )
4343
, mCaptureMode( mode )
44+
, mCaptureModeFromLayer( mode == CaptureNone )
4445
{
45-
mCaptureModeFromLayer = mode == CaptureNone;
46-
mCapturing = false;
47-
4846
mSnapIndicator.reset( new QgsSnapIndicator( canvas ) );
4947

5048
setCursor( QgsApplication::getThemeCursor( QgsApplication::Cursor::CapturePoint ) );

src/gui/qgsmaptoolcapture.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ class GUI_EXPORT QgsMapToolCapture : public QgsMapToolAdvancedDigitizing
249249
CaptureMode mCaptureMode;
250250

251251
//! Flag to indicate a map canvas capture operation is taking place
252-
bool mCapturing;
252+
bool mCapturing = false;
253253

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

0 commit comments

Comments
 (0)