From cae452a167b78d8dc164059db8a9fbe1eb3d521d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 17 Jan 2018 17:09:14 +0200 Subject: loplugin:useuniqueptr in XMLTextFieldExport Change-Id: I2b3e1ec5454bc3486fb41b010091adc549500daf Reviewed-on: https://gerrit.libreoffice.org/48512 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmloff/inc/txtflde.hxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'xmloff/inc') diff --git a/xmloff/inc/txtflde.hxx b/xmloff/inc/txtflde.hxx index 5f7fd452f988..34c867017762 100644 --- a/xmloff/inc/txtflde.hxx +++ b/xmloff/inc/txtflde.hxx @@ -32,6 +32,7 @@ #include #include +#include class SvXMLExport; @@ -151,9 +152,9 @@ class XMLTextFieldExport final SvXMLExport& rExport; /// store used text field master names (NULL means: don't collect) - ::std::map< + std::unique_ptr< ::std::map< css::uno::Reference< css::text::XText >, - ::std::set< OUString > > * + ::std::set< OUString > > > pUsedMasters; public: @@ -481,7 +482,7 @@ private: const OUString sPropertyTooltip; const OUString sPropertyTextRange; - XMLPropertyState* pCombinedCharactersPropertyState; + std::unique_ptr pCombinedCharactersPropertyState; }; -- cgit v1.2.3