From 95cec52515a51a96e58fae9aa11ca2459365e66d Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Wed, 12 Nov 2014 16:08:21 +0100 Subject: allow inserting attributes that have zero length Otherwise the strlen() might give an incorrect length if the attribute value is just a part of a longer string. Change-Id: I67eb7baecfa928fdee26c5ea9003bd7fc9b96d59 --- include/sax/fastattribs.hxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/sax') diff --git a/include/sax/fastattribs.hxx b/include/sax/fastattribs.hxx index 85a1218e8616..39f5a5f814a2 100644 --- a/include/sax/fastattribs.hxx +++ b/include/sax/fastattribs.hxx @@ -80,7 +80,8 @@ public: virtual ~FastAttributeList(); void clear(); - void add( sal_Int32 nToken, const sal_Char* pValue, size_t nValueLength = 0 ); + void add( sal_Int32 nToken, const sal_Char* pValue ); + void add( sal_Int32 nToken, const sal_Char* pValue, size_t nValueLength ); void add( sal_Int32 nToken, const OString& rValue ); void addNS( sal_Int32 nNamespaceToken, sal_Int32 nToken, const OString& rValue ); void addUnknown( const OUString& rNamespaceURL, const OString& rName, const sal_Char* pValue ); -- cgit