From b4fc996520b47a6212661a9de3a1c72ccfc379a4 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 21 Sep 2018 15:30:02 +0200 Subject: loplugin:useuniqueptr in SdrHdlList Change-Id: I83241bd2ed172594704f4b115b584dc39b234086 Reviewed-on: https://gerrit.libreoffice.org/60959 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svx/source/svdraw/svdocapt.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'svx/source/svdraw/svdocapt.cxx') 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 pHdl(new SdrHdl(aTailPoly.GetPoint(i), SdrHdlKind::Poly)); pHdl->SetPolyNum(1); pHdl->SetPointNum(nRectHdlCnt + i); - rHdlList.AddHdl(pHdl); + rHdlList.AddHdl(std::move(pHdl)); } } -- cgit