diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-05 20:52:48 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-06 08:50:50 +0200 |
commit | 396473a3d6ddd1f1ee2d4e0fd3bae5c41d2cc3fd (patch) | |
tree | 9450276aa36268b94779482cb3e5d4c1ab9a4f11 /include | |
parent | 8494a95f29c74b06cfdf78c6a218ddeba81e3914 (diff) |
use unique_ptr in ImpConvertContainedTextToSdrPathObjs
Change-Id: I7995bb3e8732ec20b941bd029e5a77aa78d09592
Reviewed-on: https://gerrit.libreoffice.org/78673
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/svx/svdotext.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/svx/svdotext.hxx b/include/svx/svdotext.hxx index 51dae6373526..2ddee8a32cf3 100644 --- a/include/svx/svdotext.hxx +++ b/include/svx/svdotext.hxx @@ -264,7 +264,7 @@ private: Fraction& aFitXCorrection ) const; void ImpAutoFitText( SdrOutliner& rOutliner ) const; static void ImpAutoFitText( SdrOutliner& rOutliner, const Size& rShapeSize, bool bIsVerticalWriting ); - SVX_DLLPRIVATE SdrObject* ImpConvertContainedTextToSdrPathObjs(bool bToPoly) const; + SVX_DLLPRIVATE SdrObjectUniquePtr ImpConvertContainedTextToSdrPathObjs(bool bToPoly) const; SVX_DLLPRIVATE void ImpRegisterLink(); SVX_DLLPRIVATE void ImpDeregisterLink(); SVX_DLLPRIVATE ImpSdrObjTextLinkUserData* GetLinkUserData() const; @@ -278,7 +278,7 @@ private: protected: bool ImpCanConvTextToCurve() const; SdrPathObjUniquePtr ImpConvertMakeObj(const basegfx::B2DPolyPolygon& rPolyPolygon, bool bClosed, bool bBezier) const; - SdrObject* ImpConvertAddText(SdrObject* pObj, bool bBezier) const; + SdrObjectUniquePtr ImpConvertAddText(SdrObjectUniquePtr pObj, bool bBezier) const; void ImpSetTextStyleSheetListeners(); static void ImpSetCharStretching(SdrOutliner& rOutliner, const Size& rTextSize, const Size& rShapeSize, Fraction& rFitXCorrection); static void ImpJustifyRect(tools::Rectangle& rRect); |