summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdocirc.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-09-08 13:30:05 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-09-08 15:29:38 +0200
commit030273e2e28ef9c4d2118ca3851c64498dfe000a (patch)
tree90d6d272d8992b88366b974264fb3e28ed2acc7b /svx/source/svdraw/svdocirc.cxx
parenta27eb931c22313d4dd5c73b35358c0532d20b79e (diff)
clean up SdrDragStat
- some light formatting in the header file - change aPnts from std::vector<Point*> to std::vector<Point>, no point in dynamically allocating a small value class - rename aPnts -> mvPnts - use std::unique_ptr for userdata - rename pUser to mpUserData - change some methods protected->private, since nothing external is using them Change-Id: I7a3f4c30c60ae1be3713f460fe65de95bed2f124 Reviewed-on: https://gerrit.libreoffice.org/42102 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/svdraw/svdocirc.cxx')
-rw-r--r--svx/source/svdraw/svdocirc.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/svdraw/svdocirc.cxx b/svx/source/svdraw/svdocirc.cxx
index 3ea984b4b529..d20ea32e2c16 100644
--- a/svx/source/svdraw/svdocirc.cxx
+++ b/svx/source/svdraw/svdocirc.cxx
@@ -665,7 +665,7 @@ void SdrCircObj::ImpSetCreateParams(SdrDragStat& rStat)
ImpCircUser* pU=static_cast<ImpCircUser*>(rStat.GetUser());
if (pU==nullptr) {
pU=new ImpCircUser;
- rStat.SetUser(pU);
+ rStat.SetUser(std::unique_ptr<ImpCircUser>(pU));
}
pU->SetCreateParams(rStat);
}