diff options
Diffstat (limited to 'sax')
-rw-r--r-- | sax/source/tools/fastattribs.cxx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sax/source/tools/fastattribs.cxx b/sax/source/tools/fastattribs.cxx index 17b9a3f6c1fd..ee65cc600c80 100644 --- a/sax/source/tools/fastattribs.cxx +++ b/sax/source/tools/fastattribs.cxx @@ -157,7 +157,7 @@ bool FastAttributeList::getAsDouble( sal_Int32 nToken, double &rDouble) return false; } -bool FastAttributeList::getAsChar( sal_Int32 nToken, const char*& rPos, size_t& rLen ) const +bool FastAttributeList::getAsChar( sal_Int32 nToken, const char*& rPos ) const { for (size_t i = 0, n = maAttributeTokens.size(); i < n; ++i) { @@ -166,12 +166,6 @@ bool FastAttributeList::getAsChar( sal_Int32 nToken, const char*& rPos, size_t& sal_Int32 nOffset = maAttributeValues[i]; rPos = mpChunk + nOffset; - - if (i + 1 < maAttributeValues.size()) - rLen = maAttributeValues[i+1] - nOffset - 1; - else - rLen = mnChunkLength - nOffset - 1; - return true; } |