summaryrefslogtreecommitdiff
path: root/xmlscript
diff options
context:
space:
mode:
Diffstat (limited to 'xmlscript')
-rw-r--r--xmlscript/source/xml_helper/xml_impctx.cxx14
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()