diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-01-27 11:10:32 +0100 |
---|---|---|
committer | László Németh <laszlo.nemeth@collabora.com> | 2015-01-27 11:15:22 +0100 |
commit | 7f0dcdfd22f90e2697d8858558b66174bd64ae34 (patch) | |
tree | 702d891769a2ed2ffec8f73e1f21d197ef9814cf /sax | |
parent | acabab05c1f99f9bd47638b9d3899d2e64aca1de (diff) |
sax: minor optimization
Change-Id: I4812a567e37789c71af0cc6ba8f5a5caf0e3ec93
Diffstat (limited to 'sax')
-rw-r--r-- | sax/source/tools/fastattribs.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sax/source/tools/fastattribs.cxx b/sax/source/tools/fastattribs.cxx index c1a3e1c14fff..8552ad47229e 100644 --- a/sax/source/tools/fastattribs.cxx +++ b/sax/source/tools/fastattribs.cxx @@ -71,9 +71,9 @@ FastAttributeList::~FastAttributeList() void FastAttributeList::clear() { maAttributeTokens.clear(); - maAttributeValues.clear(); - maAttributeValues.push_back( 0 ); - maUnknownAttributes.clear(); + maAttributeValues.resize(1); + if (maUnknownAttributes.size() > 0) + maUnknownAttributes.clear(); } void FastAttributeList::add( sal_Int32 nToken, const sal_Char* pValue, size_t nValueLength ) |