diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-14 14:36:52 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-17 07:23:22 +0200 |
commit | db3860062ebf4109f48139c2556ff4041aff5d6e (patch) | |
tree | b6ab4df909c8922e48a9c4eefa9a8f0f6a47c41f /xmlscript | |
parent | 846f557fd591626931a9dadb38180786e090104c (diff) |
extend loplugin useuniqueptr to OUString pointers
Change-Id: Ieb5bab3895e1edaff497c4a1a88303ccac097edc
Reviewed-on: https://gerrit.libreoffice.org/39948
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmlscript')
-rw-r--r-- | xmlscript/source/xml_helper/xml_impctx.cxx | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/xmlscript/source/xml_helper/xml_impctx.cxx b/xmlscript/source/xml_helper/xml_impctx.cxx index 6b7288de37c5..5c461c29a64f 100644 --- a/xmlscript/source/xml_helper/xml_impctx.cxx +++ b/xmlscript/source/xml_helper/xml_impctx.cxx @@ -304,9 +304,9 @@ class ExtendedAttributes : { sal_Int32 m_nAttributes; std::unique_ptr<sal_Int32[]> m_pUids; - OUString * m_pLocalNames; - OUString * m_pQNames; - OUString * m_pValues; + std::unique_ptr<OUString[]> m_pLocalNames; + std::unique_ptr<OUString[]> m_pQNames; + std::unique_ptr<OUString[]> m_pValues; public: inline ExtendedAttributes( @@ -314,7 +314,6 @@ public: sal_Int32 * pUids, OUString * pLocalNames, OUString * pQNames, Reference< xml::sax::XAttributeList > const & xAttributeList ); - virtual ~ExtendedAttributes() throw () override; // XAttributes virtual sal_Int32 SAL_CALL getLength() override; @@ -353,13 +352,6 @@ inline ExtendedAttributes::ExtendedAttributes( } } -ExtendedAttributes::~ExtendedAttributes() throw () -{ - delete [] m_pLocalNames; - delete [] m_pQNames; - delete [] m_pValues; -} - // XServiceInfo OUString DocumentHandlerImpl::getImplementationName() |