include/svx/svdoedge.hxx | 2 +- svx/source/svdraw/svdoedge.cxx | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-)
New commits: commit 03458f8e4609d00d7e9334a23d5f7f6fe8846e01 Author: Noel Grandin <noel.gran...@collabora.co.uk> Date: Mon Feb 5 10:25:56 2018 +0200 loplugin:useuniqueptr in SdrEdgeObj Change-Id: I457520760d182fdd4f89cb7c7a4ea2c0e514e0c4 Reviewed-on: https://gerrit.libreoffice.org/49273 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/include/svx/svdoedge.hxx b/include/svx/svdoedge.hxx index 0ff4cba37068..5b11da0feaef 100644 --- a/include/svx/svdoedge.hxx +++ b/include/svx/svdoedge.hxx @@ -142,7 +142,7 @@ protected: SdrObjConnection aCon1; // Connection status of the beginning of the line SdrObjConnection aCon2; // Connection status of the end of the line - XPolygon* pEdgeTrack; + std::unique_ptr<XPolygon> pEdgeTrack; sal_uInt16 nNotifyingCount; // Locking SdrEdgeInfoRec aEdgeInfo; 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() _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits