summaryrefslogtreecommitdiff
path: root/comphelper/source/xml
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@gmail.com>2016-02-06 18:38:32 +0100
committerMatúš Kukan <matus.kukan@gmail.com>2016-02-06 18:41:33 +0100
commit8998768a34751d35403678a81464a26835b2230e (patch)
tree5f2973f81a5c856921b99d144972d9f1baeeb6f8 /comphelper/source/xml
parent225e2a3cec2546d5d41fec21a4219c9a2f5ddf76 (diff)
sax: Use comphelper's AttributeList
Change-Id: I6eb0115dba8797025a513cf1e6cfbfbe0b6f7e50
Diffstat (limited to 'comphelper/source/xml')
-rw-r--r--comphelper/source/xml/attributelist.cxx14
1 files changed, 8 insertions, 6 deletions
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