From 513ac8eb79e45de332d7ddab5b27c70578b904f1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 26 Jun 2017 09:41:14 +0200 Subject: loplugin:useuniqueptr in various extending it to find places we can use std::unique_ptr on arrays Change-Id: I9feb1d12d738d6931e752ecb6dd51cbc1540c81b Reviewed-on: https://gerrit.libreoffice.org/39255 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmlscript/source/xml_helper/xml_impctx.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'xmlscript') diff --git a/xmlscript/source/xml_helper/xml_impctx.cxx b/xmlscript/source/xml_helper/xml_impctx.cxx index 18c1666d7d4c..09ec1373cd0d 100644 --- a/xmlscript/source/xml_helper/xml_impctx.cxx +++ b/xmlscript/source/xml_helper/xml_impctx.cxx @@ -303,7 +303,7 @@ class ExtendedAttributes : public ::cppu::WeakImplHelper< xml::input::XAttributes > { sal_Int32 m_nAttributes; - sal_Int32 * m_pUids; + std::unique_ptr m_pUids; OUString * m_pLocalNames; OUString * m_pQNames; OUString * m_pValues; @@ -355,7 +355,6 @@ inline ExtendedAttributes::ExtendedAttributes( ExtendedAttributes::~ExtendedAttributes() throw () { - delete [] m_pUids; delete [] m_pLocalNames; delete [] m_pQNames; delete [] m_pValues; -- cgit