summaryrefslogtreecommitdiff
path: root/svx/source/svdraw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-05 10:25:56 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-06 10:52:49 +0100
commit03458f8e4609d00d7e9334a23d5f7f6fe8846e01 (patch)
treed46771a2aad59d6f1f02abeee44dabcd324a006b /svx/source/svdraw
parenteff1e58839df4f4cc7d2ff239dd818880372a1a0 (diff)
loplugin:useuniqueptr in SdrEdgeObj
Change-Id: I457520760d182fdd4f89cb7c7a4ea2c0e514e0c4 Reviewed-on: https://gerrit.libreoffice.org/49273 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/svdraw')
-rw-r--r--svx/source/svdraw/svdoedge.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/svx/source/svdraw/svdoedge.cxx b/svx/source/svdraw/svdoedge.cxx
index b0c7f9414afa..b14201f24cab 100644
--- a/svx/source/svdraw/svdoedge.cxx
+++ b/svx/source/svdraw/svdoedge.cxx
@@ -173,15 +173,13 @@ SdrEdgeObj::SdrEdgeObj()
{
bClosedObj=false;
bIsEdge=true;
- pEdgeTrack=new XPolygon;
-
+ pEdgeTrack.reset(new XPolygon);
}
SdrEdgeObj::~SdrEdgeObj()
{
SdrEdgeObj::DisconnectFromNode(true);
SdrEdgeObj::DisconnectFromNode(false);
- delete pEdgeTrack;
}
void SdrEdgeObj::ImpSetAttrToEdgeInfo()