summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdograf.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-09-05 16:46:13 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-09-05 18:59:52 +0200
commit8b7434bc04de343b47d3107995cd9c3c96de40b0 (patch)
tree4f4bf0866fc8342789341d64d107bdef3a059ca2 /svx/source/svdraw/svdograf.cxx
parent4c16f79b30ff3e015c706e0563faf6cf2931e1a6 (diff)
use unique_ptr in SdrObject::getFullDragClone
Change-Id: I904f1f13bb4958e3457476e6e682ec7d7b97c670 Reviewed-on: https://gerrit.libreoffice.org/78660 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/svdraw/svdograf.cxx')
-rw-r--r--svx/source/svdraw/svdograf.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/svdraw/svdograf.cxx b/svx/source/svdraw/svdograf.cxx
index cbf3c055578b..329bbaf768ea 100644
--- a/svx/source/svdraw/svdograf.cxx
+++ b/svx/source/svdraw/svdograf.cxx
@@ -702,17 +702,17 @@ OUString SdrGrafObj::TakeObjNamePlural() const
return sName.makeStringAndClear();
}
-SdrObject* SdrGrafObj::getFullDragClone() const
+SdrObjectUniquePtr SdrGrafObj::getFullDragClone() const
{
// call parent
- SdrGrafObj* pRetval = static_cast< SdrGrafObj* >(SdrRectObj::getFullDragClone());
+ SdrObjectUniquePtr pRetval = SdrRectObj::getFullDragClone();
// #i103116# the full drag clone leads to problems
// with linked graphics, so reset the link in this
// temporary interaction object and load graphic
if(pRetval && IsLinkedGraphic())
{
- pRetval->ReleaseGraphicLink();
+ static_cast< SdrGrafObj* >(pRetval.get())->ReleaseGraphicLink();
}
return pRetval;