Skip to content

Commit 635582e

Browse files
committedJun 11, 2019
Use QObjectUniquePtr
1 parent e422aa6 commit 635582e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎src/gui/qgsmaptoolcapture.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include "qgspointlocator.h"
2222
#include "qgscompoundcurve.h"
2323
#include "qgsgeometry.h"
24+
#include "qobjectuniqueptr"
2425

2526
#include <QPoint>
2627
#include <QList>
@@ -263,10 +264,10 @@ class GUI_EXPORT QgsMapToolCapture : public QgsMapToolAdvancedDigitizing
263264
bool mCapturing = false;
264265

265266
//! Rubber band for polylines and polygons
266-
std::unique_ptr<QgsRubberBand> mRubberBand;
267+
QObjectUniquePtr<QgsRubberBand> mRubberBand;
267268

268269
//! Temporary rubber band for polylines and polygons. this connects the last added point to the mouse cursor position
269-
std::unique_ptr<QgsRubberBand> mTempRubberBand;
270+
QObjectUniquePtr<QgsRubberBand> mTempRubberBand;
270271

271272
//! List to store the points of digitized lines and polygons (in layer coordinates)
272273
QgsCompoundCurve mCaptureCurve;

0 commit comments

Comments
 (0)
Please sign in to comment.