[Libreoffice-commits] core.git: sax/source
Michael Meeks
michael.meeks at collabora.com
Tue Jan 27 02:16:24 PST 2015
sax/source/tools/fastattribs.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 7f0dcdfd22f90e2697d8858558b66174bd64ae34
Author: Michael Meeks <michael.meeks at collabora.com>
Date: Tue Jan 27 11:10:32 2015 +0100
sax: minor optimization
Change-Id: I4812a567e37789c71af0cc6ba8f5a5caf0e3ec93
diff --git a/sax/source/tools/fastattribs.cxx b/sax/source/tools/fastattribs.cxx
index c1a3e1c..8552ad4 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 )
More information about the Libreoffice-commits
mailing list