summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-04 14:38:44 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-05 11:01:08 +0200
commit98193d35a60ca699d57033461abe43040c27b274 (patch)
tree8a9c2fac66dcd5fb6231f08e911f071de8869c05 /svx
parent518fdc296a45a2b47eb8f2c377522fb39cdcccf2 (diff)
return std::unique_ptr from SdrText::RemoveOutlinerParaObject
Change-Id: Id4833818b48a572b7fa4f3c5d7bba1bf9548a0fe Reviewed-on: https://gerrit.libreoffice.org/61398 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdtext.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/svdraw/svdtext.cxx b/svx/source/svdraw/svdtext.cxx
index 4e7f20021975..44c84f490dbd 100644
--- a/svx/source/svdraw/svdtext.cxx
+++ b/svx/source/svdraw/svdtext.cxx
@@ -93,7 +93,7 @@ OutlinerParaObject* SdrText::GetOutlinerParaObject() const
}
/** returns the current OutlinerParaObject and removes it from this instance */
-OutlinerParaObject* SdrText::RemoveOutlinerParaObject()
+std::unique_ptr<OutlinerParaObject> SdrText::RemoveOutlinerParaObject()
{
// Update HitTestOutliner
const SdrTextObj* pTestObj(mrObject.getSdrModelFromSdrObject().GetHitTestOutliner().GetTextObj());
@@ -103,7 +103,7 @@ OutlinerParaObject* SdrText::RemoveOutlinerParaObject()
mrObject.getSdrModelFromSdrObject().GetHitTestOutliner().SetTextObj(nullptr);
}
- OutlinerParaObject* pOPO = mpOutlinerParaObject.release();
+ std::unique_ptr<OutlinerParaObject> pOPO = std::move(mpOutlinerParaObject);
mbPortionInfoChecked = false;
return pOPO;