Skip to content

Commit

Permalink
Use QObjectUniquePtr
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jun 11, 2019
1 parent e422aa6 commit 635582e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gui/qgsmaptoolcapture.h
Expand Up @@ -21,6 +21,7 @@
#include "qgspointlocator.h"
#include "qgscompoundcurve.h"
#include "qgsgeometry.h"
#include "qobjectuniqueptr"

#include <QPoint>
#include <QList>
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 635582e

Please sign in to comment.