diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-21 15:30:02 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-25 13:57:36 +0200 |
commit | b4fc996520b47a6212661a9de3a1c72ccfc379a4 (patch) | |
tree | 2dcb66d687dcdd1d91a75f9e498ca04742a7c564 /svx/source/svdraw/svdocapt.cxx | |
parent | c30bdfbd22807e3f0c77f13a246ec243153ad7ae (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/svdraw/svdocapt.cxx')
-rw-r--r-- | svx/source/svdraw/svdocapt.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/svdraw/svdocapt.cxx b/svx/source/svdraw/svdocapt.cxx index 4be0d6687a78..2fea3adbec97 100644 --- a/svx/source/svdraw/svdocapt.cxx +++ b/svx/source/svdraw/svdocapt.cxx @@ -302,10 +302,10 @@ void SdrCaptionObj::AddToHdlList(SdrHdlList& rHdlList) const sal_uInt32 nCnt = aTailPoly.GetSize(); for(sal_uInt32 i = 0; i<nCnt; ++i) { - SdrHdl* pHdl = new SdrHdl(aTailPoly.GetPoint(i), SdrHdlKind::Poly); + std::unique_ptr<SdrHdl> pHdl(new SdrHdl(aTailPoly.GetPoint(i), SdrHdlKind::Poly)); pHdl->SetPolyNum(1); pHdl->SetPointNum(nRectHdlCnt + i); - rHdlList.AddHdl(pHdl); + rHdlList.AddHdl(std::move(pHdl)); } } |