diff options
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)); } } |