Kaydet (Commit) 03458f8e authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:useuniqueptr in SdrEdgeObj

Change-Id: I457520760d182fdd4f89cb7c7a4ea2c0e514e0c4
Reviewed-on: https://gerrit.libreoffice.org/49273Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst eff1e588
...@@ -142,7 +142,7 @@ protected: ...@@ -142,7 +142,7 @@ protected:
SdrObjConnection aCon1; // Connection status of the beginning of the line SdrObjConnection aCon1; // Connection status of the beginning of the line
SdrObjConnection aCon2; // Connection status of the end of the line SdrObjConnection aCon2; // Connection status of the end of the line
XPolygon* pEdgeTrack; std::unique_ptr<XPolygon> pEdgeTrack;
sal_uInt16 nNotifyingCount; // Locking sal_uInt16 nNotifyingCount; // Locking
SdrEdgeInfoRec aEdgeInfo; SdrEdgeInfoRec aEdgeInfo;
......
...@@ -173,15 +173,13 @@ SdrEdgeObj::SdrEdgeObj() ...@@ -173,15 +173,13 @@ SdrEdgeObj::SdrEdgeObj()
{ {
bClosedObj=false; bClosedObj=false;
bIsEdge=true; bIsEdge=true;
pEdgeTrack=new XPolygon; pEdgeTrack.reset(new XPolygon);
} }
SdrEdgeObj::~SdrEdgeObj() SdrEdgeObj::~SdrEdgeObj()
{ {
SdrEdgeObj::DisconnectFromNode(true); SdrEdgeObj::DisconnectFromNode(true);
SdrEdgeObj::DisconnectFromNode(false); SdrEdgeObj::DisconnectFromNode(false);
delete pEdgeTrack;
} }
void SdrEdgeObj::ImpSetAttrToEdgeInfo() void SdrEdgeObj::ImpSetAttrToEdgeInfo()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment