diff options
-rw-r--r-- | include/svx/svdtext.hxx | 2 | ||||
-rw-r--r-- | svx/source/svdraw/svdtext.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/svx/svdtext.hxx b/include/svx/svdtext.hxx index 18f8d0bc7e00..c1343dad867a 100644 --- a/include/svx/svdtext.hxx +++ b/include/svx/svdtext.hxx @@ -64,7 +64,7 @@ public: SdrTextObj& GetObject() const { return mrObject; } /** returns the current OutlinerParaObject and removes it from this instance */ - OutlinerParaObject* RemoveOutlinerParaObject(); + std::unique_ptr<OutlinerParaObject> RemoveOutlinerParaObject(); void dumpAsXml(struct _xmlTextWriter * pWriter) const; 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; |