diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-06-28 13:46:10 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-06-29 11:42:28 +0200 |
commit | ab1bba8de47aa0ca1ba49f1624358558400b2b26 (patch) | |
tree | db418569bf245f215ed3d21e47db715fc5e11dd8 /sw/inc | |
parent | 744feb55a11263ae0947ab59db76b949b5863acf (diff) |
loplugin:useuniqueptr in SwPostItField
Change-Id: I1d048ac400d6a929a840bcb8f0df52be528c0a5b
Reviewed-on: https://gerrit.libreoffice.org/56623
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/docufld.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/inc/docufld.hxx b/sw/inc/docufld.hxx index 28dc230ce8fb..8afc0a1e425a 100644 --- a/sw/inc/docufld.hxx +++ b/sw/inc/docufld.hxx @@ -444,7 +444,7 @@ class SW_DLLPUBLIC SwPostItField : public SwField OUString m_sInitials; ///< Initials of the author. OUString m_sName; ///< Name of the comment. DateTime m_aDateTime; - OutlinerParaObject* mpText; + std::unique_ptr<OutlinerParaObject> mpText; rtl::Reference<SwTextAPIObject> m_xTextObject; sal_uInt32 m_nPostItId; @@ -484,8 +484,8 @@ public: void SetName(const OUString& rStr); const OUString& GetName() const { return m_sName;} - const OutlinerParaObject* GetTextObject() const { return mpText;} - void SetTextObject( OutlinerParaObject* pText ); + const OutlinerParaObject* GetTextObject() const { return mpText.get();} + void SetTextObject( std::unique_ptr<OutlinerParaObject> pText ); sal_Int32 GetNumberOfParagraphs() const; |