Kaydet (Commit) 52af06b4 authored tarafından Xisco Fauli's avatar Xisco Fauli Kaydeden (comit) Noel Grandin

tdf#89329: use unique_ptr for pImpl in xmlnumfe

Change-Id: I1c07b20f187d4b7045d68e0b7f95725de039bf77
Reviewed-on: https://gerrit.libreoffice.org/25743Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst 37c0fd25
......@@ -26,6 +26,7 @@
#include <com/sun/star/util/XNumberFormatsSupplier.hpp>
#include <com/sun/star/uno/Sequence.h>
#include <rtl/ustrbuf.hxx>
#include <memory>
#define XML_WRITTENNUMBERSTYLES "WrittenNumberStyles"
......@@ -49,7 +50,7 @@ private:
OUString sPrefix;
SvNumberFormatter* pFormatter;
OUStringBuffer sTextContent;
SvXMLNumUsedList_Impl* pUsedList;
std::unique_ptr<SvXMLNumUsedList_Impl> pUsedList;
CharClass* pCharClass;
LocaleDataWrapper* pLocaleData;
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment