From 8998768a34751d35403678a81464a26835b2230e Mon Sep 17 00:00:00 2001 From: Matúš Kukan Date: Sat, 6 Feb 2016 18:38:32 +0100 Subject: sax: Use comphelper's AttributeList Change-Id: I6eb0115dba8797025a513cf1e6cfbfbe0b6f7e50 --- comphelper/source/xml/attributelist.cxx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'comphelper') diff --git a/comphelper/source/xml/attributelist.cxx b/comphelper/source/xml/attributelist.cxx index 3342ef288ab1..f196b48ce645 100644 --- a/comphelper/source/xml/attributelist.cxx +++ b/comphelper/source/xml/attributelist.cxx @@ -106,18 +106,20 @@ AttributeList::AttributeList() m_pImpl = new AttributeList_Impl; } - - AttributeList::~AttributeList() { delete m_pImpl; } -void AttributeList::AddAttribute( const OUString &sName , - const OUString &sType , - const OUString &sValue ) +void AttributeList::AddAttribute(const OUString &sName, + const OUString &sType, const OUString &sValue) +{ + m_pImpl->vecAttribute.push_back( TagAttribute_Impl(sName, sType, sValue) ); +} + +void AttributeList::Clear() { - m_pImpl->vecAttribute.push_back( TagAttribute_Impl( sName , sType , sValue ) ); + m_pImpl->vecAttribute.clear(); } } // namespace comphelper -- cgit