diff options
author | Xisco Fauli <anistenis@gmail.com> | 2016-06-01 01:03:01 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-06-06 07:18:26 +0000 |
commit | 52af06b471ed3e4627be3950330ad311b71c275b (patch) | |
tree | f0a298aa091fc45d03cfe98feeb0d804b6b201e8 /xmloff | |
parent | 37c0fd253e7a73d08d35b60fecd7aa09816d9073 (diff) |
tdf#89329: use unique_ptr for pImpl in xmlnumfe
Change-Id: I1c07b20f187d4b7045d68e0b7f95725de039bf77
Reviewed-on: https://gerrit.libreoffice.org/25743
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/style/xmlnumfe.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/xmloff/source/style/xmlnumfe.cxx b/xmloff/source/style/xmlnumfe.cxx index dc785d07e585..78bd915f4dc5 100644 --- a/xmloff/source/style/xmlnumfe.cxx +++ b/xmloff/source/style/xmlnumfe.cxx @@ -254,7 +254,7 @@ SvXMLNumFmtExport::SvXMLNumFmtExport( pLocaleData = new LocaleDataWrapper( rExport.getComponentContext(), aLanguageTag ); } - pUsedList = new SvXMLNumUsedList_Impl; + pUsedList.reset(new SvXMLNumUsedList_Impl); } SvXMLNumFmtExport::SvXMLNumFmtExport( @@ -288,12 +288,11 @@ SvXMLNumFmtExport::SvXMLNumFmtExport( pLocaleData = new LocaleDataWrapper( rExport.getComponentContext(), aLanguageTag ); } - pUsedList = new SvXMLNumUsedList_Impl; + pUsedList.reset(new SvXMLNumUsedList_Impl); } SvXMLNumFmtExport::~SvXMLNumFmtExport() { - delete pUsedList; delete pLocaleData; delete pCharClass; } |