summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdmrkv.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-08-13 16:16:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-08-15 11:27:20 +0200
commit18e20676024baecaf5719139f80f053f5f1e784a (patch)
tree54e7d15b178ee373c0c72e153d9b1a427963d889 /svx/source/svdraw/svdmrkv.cxx
parent82a7c54ad8b9b193e767fcafb5316d3f05e21001 (diff)
loplugin:useuniqueptr in OverlayObjectList
Change-Id: I641d93e54504c27bcc49bae8edf6286c0a9a471f Reviewed-on: https://gerrit.libreoffice.org/59024 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/svdraw/svdmrkv.cxx')
-rw-r--r--svx/source/svdraw/svdmrkv.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/svdraw/svdmrkv.cxx b/svx/source/svdraw/svdmrkv.cxx
index c4eca039c19d..084d936e1baa 100644
--- a/svx/source/svdraw/svdmrkv.cxx
+++ b/svx/source/svdraw/svdmrkv.cxx
@@ -94,10 +94,10 @@ ImplMarkingOverlay::ImplMarkingOverlay(const SdrPaintView& rView, const basegfx:
if (xTargetOverlay.is())
{
- sdr::overlay::OverlayRollingRectangleStriped* pNew = new sdr::overlay::OverlayRollingRectangleStriped(
- rStartPos, rStartPos, false);
+ std::unique_ptr<sdr::overlay::OverlayRollingRectangleStriped> pNew(new sdr::overlay::OverlayRollingRectangleStriped(
+ rStartPos, rStartPos, false));
xTargetOverlay->add(*pNew);
- maObjects.append(pNew);
+ maObjects.append(std::move(pNew));
}
}
}