diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-12-17 17:29:58 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-12-17 17:29:58 +0100 |
commit | b9bcc9c5c10841dcdfa9ff5814344ce667678df3 (patch) | |
tree | dc5080b5278c9f55dec6f0c98345a45add7da1e2 /sax | |
parent | 71448690d7c5904df45bf98243c5bb05a99245e5 (diff) |
...and nDigits > 9 is harmless in following for loop and need not be capped
Change-Id: I30c4005e5983f5007edfed692b74f07b31899755
Diffstat (limited to 'sax')
-rw-r--r-- | sax/source/tools/converter.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sax/source/tools/converter.cxx b/sax/source/tools/converter.cxx index fda7cb48700f..8b0b616b36e1 100644 --- a/sax/source/tools/converter.cxx +++ b/sax/source/tools/converter.cxx @@ -1123,7 +1123,7 @@ bool Converter::convertDuration(util::Duration& rDuration, if (-1 != nTemp) { nNanoSeconds = nTemp; - sal_Int32 nDigits = std::min<sal_Int32>(nPos - nStart, 9); + sal_Int32 nDigits = nPos - nStart; assert(nDigits >= 0); for (; nDigits < 9; ++nDigits) { |