summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-05-02 10:08:38 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-05-03 08:21:09 +0200
commit09cfe07c20636445c330e8a86b7e1bf9492144fb (patch)
treee6a3987684fbb30f75b494a0ef9479b0e8e87442 /include
parent72ec9cc3ace02e1ba15aa5843bc110b34b1d30a4 (diff)
loplugin:useuniqueptr in SdrDragMethod
Change-Id: I73411368b55d53e83f45e0347663036f1f72c066 Reviewed-on: https://gerrit.libreoffice.org/53752 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/svx/svddrgmt.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/svx/svddrgmt.hxx b/include/svx/svddrgmt.hxx
index ab6a87344511..b51769d0e740 100644
--- a/include/svx/svddrgmt.hxx
+++ b/include/svx/svddrgmt.hxx
@@ -23,6 +23,7 @@
#include <svx/svddrgv.hxx>
#include <svx/svxdllapi.h>
#include <svx/sdr/contact/objectcontact.hxx>
+#include <memory>
class SdrDragView;
class SdrDragStat;
@@ -113,7 +114,7 @@ public:
class SVX_DLLPUBLIC SdrDragMethod
{
private:
- std::vector< SdrDragEntry* > maSdrDragEntries;
+ std::vector< std::unique_ptr<SdrDragEntry> > maSdrDragEntries;
sdr::overlay::OverlayObjectList maOverlayObjectList;
SdrDragView& mrSdrDragView;
@@ -124,7 +125,7 @@ private:
protected:
// access for derivated classes to maSdrDragEntries
void clearSdrDragEntries();
- void addSdrDragEntry(SdrDragEntry* pNew);
+ void addSdrDragEntry(std::unique_ptr<SdrDragEntry> pNew);
virtual void createSdrDragEntries();
virtual void createSdrDragEntryForSdrObject(const SdrObject& rOriginal, sdr::contact::ObjectContact& rObjectContact);