summaryrefslogtreecommitdiff
path: root/include/xmloff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-01-17 11:08:46 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-01-31 07:46:14 +0100
commita8c1083553ee4c0d85bacef4ea4cdef0de8927d3 (patch)
tree6cb42c165d1f958743e7dc03fc7a5540a530ed33 /include/xmloff
parent96a47c604df8187ab5c68d9941d71e8f07acce6d (diff)
loplugin:useuniqueptr in SvXMLExport
Change-Id: I8ce26b7cddeb74fd86f60896c84bf3574ccbc9bc Reviewed-on: https://gerrit.libreoffice.org/48421 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/xmloff')
-rw-r--r--include/xmloff/xmlexp.hxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/xmloff/xmlexp.hxx b/include/xmloff/xmlexp.hxx
index ad934e1f612a..fe73d0d6ab5d 100644
--- a/include/xmloff/xmlexp.hxx
+++ b/include/xmloff/xmlexp.hxx
@@ -140,10 +140,10 @@ class XMLOFF_DLLPUBLIC SvXMLExport : public cppu::WeakImplHelper<
OUString msEmbeddedObjectProtocol;
OUString msFilterName;
OUString msImgFilterName;
- SvXMLNamespaceMap *mpNamespaceMap; // the namepspace map
+ std::unique_ptr<SvXMLNamespaceMap> mpNamespaceMap; // the namepspace map
SvXMLUnitConverter maUnitConv; // the unit converter
- SvXMLNumFmtExport *mpNumExport;
- ProgressBarHelper *mpProgressBarHelper;
+ std::unique_ptr<SvXMLNumFmtExport> mpNumExport;
+ std::unique_ptr<ProgressBarHelper> mpProgressBarHelper;
rtl::Reference< XMLTextParagraphExport > mxTextParagraphExport;
rtl::Reference< XMLShapeExport > mxShapeExport;
@@ -152,9 +152,9 @@ class XMLOFF_DLLPUBLIC SvXMLExport : public cppu::WeakImplHelper<
rtl::Reference< XMLPageExport > mxPageExport;
rtl::Reference< XMLFontAutoStylePool > mxFontAutoStylePool;
rtl::Reference< xmloff::OFormLayerXMLExport > mxFormExport;
- XMLEventExport* mpEventExport;
- XMLImageMapExport* mpImageMapExport;
- XMLErrors* mpXMLErrors;
+ std::unique_ptr<XMLEventExport> mpEventExport;
+ std::unique_ptr<XMLImageMapExport> mpImageMapExport;
+ std::unique_ptr<XMLErrors> mpXMLErrors;
const enum ::xmloff::token::XMLTokenEnum meClass;
SAL_DLLPRIVATE void InitCtor_();
@@ -420,7 +420,7 @@ public:
{
mxNumberFormatsSupplier = _xNumberFormatSupplier;
if ( mxNumberFormatsSupplier.is() && mxHandler.is() )
- mpNumExport = new SvXMLNumFmtExport(*this, mxNumberFormatsSupplier);
+ mpNumExport.reset( new SvXMLNumFmtExport(*this, mxNumberFormatsSupplier) );
}
// get export helper for text