diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-17 15:59:54 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-25 07:23:31 +0100 |
commit | aae1a702696f485a418fbf53500977b236976d38 (patch) | |
tree | 7732ff1dfe7fbd24cbd9fb3ad4be4266949d06a9 /xmloff/inc/XMLEventImportHelper.hxx | |
parent | eb8c84846bdba32c17b23e7da6742463085bec9d (diff) |
loplugin:useuniqueptr in XMLEventImportHelper
Change-Id: I2369ac92fa2f30b98b5910563dd6d0a6f8ca6a0c
Reviewed-on: https://gerrit.libreoffice.org/48479
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/inc/XMLEventImportHelper.hxx')
-rw-r--r-- | xmloff/inc/XMLEventImportHelper.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
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 <map> #include <vector> +#include <memory> 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<NameMap> pEventNameMap; /// stack of previous aEventNameMap - std::vector< NameMap* > aEventNameMapVector; + std::vector< std::unique_ptr<NameMap> > aEventNameMapVector; public: XMLEventImportHelper(); |