From aae1a702696f485a418fbf53500977b236976d38 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 17 Jan 2018 15:59:54 +0200 Subject: loplugin:useuniqueptr in XMLEventImportHelper Change-Id: I2369ac92fa2f30b98b5910563dd6d0a6f8ca6a0c Reviewed-on: https://gerrit.libreoffice.org/48479 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmloff/inc/XMLEventImportHelper.hxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'xmloff/inc') diff --git a/xmloff/inc/XMLEventImportHelper.hxx b/xmloff/inc/XMLEventImportHelper.hxx index 0ad45da644ca..99d03999ec25 100644 --- a/xmloff/inc/XMLEventImportHelper.hxx +++ b/xmloff/inc/XMLEventImportHelper.hxx @@ -25,6 +25,7 @@ #include #include +#include namespace com { namespace sun { namespace star { @@ -57,10 +58,10 @@ class XMLEventImportHelper FactoryMap aFactoryMap; /// map from XML to API names - NameMap* pEventNameMap; + std::unique_ptr pEventNameMap; /// stack of previous aEventNameMap - std::vector< NameMap* > aEventNameMapVector; + std::vector< std::unique_ptr > aEventNameMapVector; public: XMLEventImportHelper(); -- cgit