summaryrefslogtreecommitdiff
path: root/svx/source/engine3d
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-09-21 15:30:02 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-09-25 13:57:36 +0200
commitb4fc996520b47a6212661a9de3a1c72ccfc379a4 (patch)
tree2dcb66d687dcdd1d91a75f9e498ca04742a7c564 /svx/source/engine3d
parentc30bdfbd22807e3f0c77f13a246ec243153ad7ae (diff)
loplugin:useuniqueptr in SdrHdlList
Change-Id: I83241bd2ed172594704f4b115b584dc39b234086 Reviewed-on: https://gerrit.libreoffice.org/60959 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/engine3d')
-rw-r--r--svx/source/engine3d/obj3d.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/svx/source/engine3d/obj3d.cxx b/svx/source/engine3d/obj3d.cxx
index 139b98d170ac..f9723ff93992 100644
--- a/svx/source/engine3d/obj3d.cxx
+++ b/svx/source/engine3d/obj3d.cxx
@@ -574,7 +574,7 @@ void E3dCompoundObject::AddToHdlList(SdrHdlList& rHdlList) const
// to 2d world coor
aPos2D *= rVCScene.getObjectTransformation();
- rHdlList.AddHdl(new SdrHdl(Point(basegfx::fround(aPos2D.getX()), basegfx::fround(aPos2D.getY())), SdrHdlKind::BezierWeight));
+ rHdlList.AddHdl(o3tl::make_unique<SdrHdl>(Point(basegfx::fround(aPos2D.getX()), basegfx::fround(aPos2D.getY())), SdrHdlKind::BezierWeight));
}
}
}
@@ -583,8 +583,7 @@ void E3dCompoundObject::AddToHdlList(SdrHdlList& rHdlList) const
if(aPolyPolygon.count())
{
- E3dVolumeMarker* pVolMarker = new E3dVolumeMarker(aPolyPolygon);
- rHdlList.AddHdl(pVolMarker);
+ rHdlList.AddHdl(o3tl::make_unique<E3dVolumeMarker>(aPolyPolygon));
}
}