Use QObjectUniquePtr

This commit is contained in:
Matthias Kuhn 2019-06-11 21:14:40 +02:00
parent e422aa68e7
commit 635582e89e

View File

@ -21,6 +21,7 @@
#include "qgspointlocator.h"
#include "qgscompoundcurve.h"
#include "qgsgeometry.h"
#include "qobjectuniqueptr"
#include <QPoint>
#include <QList>
@ -263,10 +264,10 @@ class GUI_EXPORT QgsMapToolCapture : public QgsMapToolAdvancedDigitizing
bool mCapturing = false;
//! Rubber band for polylines and polygons
std::unique_ptr<QgsRubberBand> mRubberBand;
QObjectUniquePtr<QgsRubberBand> mRubberBand;
//! Temporary rubber band for polylines and polygons. this connects the last added point to the mouse cursor position
std::unique_ptr<QgsRubberBand> mTempRubberBand;
QObjectUniquePtr<QgsRubberBand> mTempRubberBand;
//! List to store the points of digitized lines and polygons (in layer coordinates)
QgsCompoundCurve mCaptureCurve;