summaryrefslogtreecommitdiffstats
path: root/include/editeng/editeng.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-04-10 16:07:49 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-04-11 08:42:59 +0200
commitff8442fd85f2e281a564e3dc832a751a3a9c3072 (patch)
tree05d4a59e914d53a357f99a8ce6146cb3e35f47c3 /include/editeng/editeng.hxx
parentFix typos (diff)
downloadcore-ff8442fd85f2e281a564e3dc832a751a3a9c3072.tar.gz
core-ff8442fd85f2e281a564e3dc832a751a3a9c3072.zip
pass EditTextObject around using std::unique_ptr
Change-Id: I71f4529c2e02fd0ac2561191e4cb35e18e206037 Reviewed-on: https://gerrit.libreoffice.org/52682 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/editeng/editeng.hxx')
-rw-r--r--include/editeng/editeng.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/editeng/editeng.hxx b/include/editeng/editeng.hxx
index ee4eb7baeb31..393e0068cb64 100644
--- a/include/editeng/editeng.hxx
+++ b/include/editeng/editeng.hxx
@@ -299,10 +299,10 @@ public:
void Clear();
void SetText( const OUString& rStr );
- EditTextObject* CreateTextObject();
- EditTextObject* GetEmptyTextObject() const;
- EditTextObject* CreateTextObject( sal_Int32 nPara, sal_Int32 nParas = 1 );
- EditTextObject* CreateTextObject( const ESelection& rESelection );
+ std::unique_ptr<EditTextObject> CreateTextObject();
+ std::unique_ptr<EditTextObject> GetEmptyTextObject() const;
+ std::unique_ptr<EditTextObject> CreateTextObject( sal_Int32 nPara, sal_Int32 nParas = 1 );
+ std::unique_ptr<EditTextObject> CreateTextObject( const ESelection& rESelection );
void SetText( const EditTextObject& rTextObject );
void RemoveParagraph(sal_Int32 nPara);