mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-09 00:35:20 -05:00
Use QObjectUniquePtr
This commit is contained in:
parent
e422aa68e7
commit
635582e89e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user