summaryrefslogtreecommitdiff
path: root/include/sax
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@gmail.com>2013-10-15 09:29:27 +0200
committerMatúš Kukan <matus.kukan@gmail.com>2013-10-17 21:38:37 +0200
commit9ae701509add0f0192b02fab787c6acbc64be349 (patch)
treeda1145670c705525c5c80727eaa51baf2caf6a1f /include/sax
parentbc2d6ef106bb3ea40fd54dc57e786a8a1898b465 (diff)
FastAttributeList: use vectors instead of map; the size is small
This is also preparation to avoid OString internal usage. Change-Id: If0ea36155d8ab3f5c91c2aafd6932fabeadadd41
Diffstat (limited to 'include/sax')
-rw-r--r--include/sax/fastattribs.hxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/sax/fastattribs.hxx b/include/sax/fastattribs.hxx
index f31be4b142f6..88e9d615e56e 100644
--- a/include/sax/fastattribs.hxx
+++ b/include/sax/fastattribs.hxx
@@ -47,7 +47,6 @@ struct UnknownAttribute
void FillAttribute( ::com::sun::star::xml::Attribute* pAttrib ) const;
};
-typedef std::map< sal_Int32, OString > FastAttributeMap;
typedef std::vector< UnknownAttribute > UnknownAttributeList;
class SAX_DLLPUBLIC FastAttributeList : public ::cppu::WeakImplHelper1< ::com::sun::star::xml::sax::XFastAttributeList >
@@ -71,9 +70,9 @@ public:
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::xml::FastAttribute > SAL_CALL getFastAttributes() throw (::com::sun::star::uno::RuntimeException);
private:
- FastAttributeMap maAttributes;
+ std::vector< sal_Int32 > maAttributeTokens;
+ std::vector< OString > maAttributeValues;
UnknownAttributeList maUnknownAttributes;
- FastAttributeMap::iterator maLastIter;
::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastTokenHandler > mxTokenHandler;
};