summaryrefslogtreecommitdiff
path: root/editeng/source/uno/unofored.cxx
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 /editeng/source/uno/unofored.cxx
parent672660031e4ca38205e2068b1e321268a844a68b (diff)
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 'editeng/source/uno/unofored.cxx')
-rw-r--r--editeng/source/uno/unofored.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/editeng/source/uno/unofored.cxx b/editeng/source/uno/unofored.cxx
index 406c0d7a13d6..31c3e4a05def 100644
--- a/editeng/source/uno/unofored.cxx
+++ b/editeng/source/uno/unofored.cxx
@@ -498,9 +498,8 @@ void SvxEditEngineForwarder::CopyText(const SvxTextForwarder& rSource)
const SvxEditEngineForwarder* pSourceForwarder = dynamic_cast< const SvxEditEngineForwarder* >( &rSource );
if( !pSourceForwarder )
return;
- EditTextObject* pNewTextObject = pSourceForwarder->rEditEngine.CreateTextObject();
+ std::unique_ptr<EditTextObject> pNewTextObject = pSourceForwarder->rEditEngine.CreateTextObject();
rEditEngine.SetText( *pNewTextObject );
- delete pNewTextObject;
}