summaryrefslogtreecommitdiff
path: root/sd/source/ui
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 /sd/source/ui
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 'sd/source/ui')
-rw-r--r--sd/source/ui/animations/motionpathtag.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/ui/animations/motionpathtag.cxx b/sd/source/ui/animations/motionpathtag.cxx
index 165d67b87516..6699ade88ff7 100644
--- a/sd/source/ui/animations/motionpathtag.cxx
+++ b/sd/source/ui/animations/motionpathtag.cxx
@@ -106,7 +106,7 @@ void PathDragMove::createSdrDragEntries()
if(maPathPolyPolygon.count())
{
- addSdrDragEntry(new SdrDragEntryPolyPolygon(maPathPolyPolygon));
+ addSdrDragEntry(std::unique_ptr<SdrDragEntry>(new SdrDragEntryPolyPolygon(maPathPolyPolygon)));
}
}
@@ -167,7 +167,7 @@ void PathDragResize::createSdrDragEntries()
if(maPathPolyPolygon.count())
{
- addSdrDragEntry(new SdrDragEntryPolyPolygon(maPathPolyPolygon));
+ addSdrDragEntry(std::unique_ptr<SdrDragEntry>(new SdrDragEntryPolyPolygon(maPathPolyPolygon)));
}
}
@@ -221,7 +221,7 @@ void PathDragObjOwn::createSdrDragEntries()
if(maPathPolyPolygon.count())
{
- addSdrDragEntry(new SdrDragEntryPolyPolygon(maPathPolyPolygon));
+ addSdrDragEntry(std::unique_ptr<SdrDragEntry>(new SdrDragEntryPolyPolygon(maPathPolyPolygon)));
}
}