summaryrefslogtreecommitdiff
path: root/editeng/source/uno
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-01-11 12:53:32 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-01-13 13:08:52 +0000
commitcd8fdb46fd9a215532688585f3466d36b1daa1ac (patch)
tree8e25067a0e72ce5afe9c490f9eef567821f594c7 /editeng/source/uno
parente6d7d737522124350a17a3cfdee055f03200a274 (diff)
new loplugin: useuniqueptr: editeng
Change-Id: I6df65eab882780d996ee996b5fef8020186b6d98 Reviewed-on: https://gerrit.libreoffice.org/32958 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng/source/uno')
-rw-r--r--editeng/source/uno/unotext2.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/editeng/source/uno/unotext2.cxx b/editeng/source/uno/unotext2.cxx
index a5d593e64a2a..e56443a1bea2 100644
--- a/editeng/source/uno/unotext2.cxx
+++ b/editeng/source/uno/unotext2.cxx
@@ -45,15 +45,12 @@ SvxUnoTextContentEnumeration::SvxUnoTextContentEnumeration( const SvxUnoTextBase
{
mxParentText = const_cast<SvxUnoTextBase*>(&_rText);
if( mrText.GetEditSource() )
- mpEditSource = mrText.GetEditSource()->Clone();
- else
- mpEditSource = nullptr;
+ mpEditSource.reset( mrText.GetEditSource()->Clone() );
mnNextParagraph = 0;
}
SvxUnoTextContentEnumeration::~SvxUnoTextContentEnumeration() throw()
{
- delete mpEditSource;
}
// container::XEnumeration