diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2019-02-07 11:55:24 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2019-02-11 07:07:30 +0100 |
commit | 121182bddbce8f14cccdf7db9af8c08867a0912f (patch) | |
tree | dbad1ab9b7a4a4ea0f5862ae1a8679aa117c8829 /i18npool | |
parent | 6e8c9bdf0a55141d3cbd181862aec89b788bb060 (diff) |
tdf#120703 PVS: V560 A part of conditional expression is always true/false
Change-Id: I67462369d93e9d9ff3c056800947c4b75f71ba5f
Reviewed-on: https://gerrit.libreoffice.org/67486
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'i18npool')
-rw-r--r-- | i18npool/source/transliteration/transliteration_Numeric.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/i18npool/source/transliteration/transliteration_Numeric.cxx b/i18npool/source/transliteration/transliteration_Numeric.cxx index 4550026153d5..b479a85bfde1 100644 --- a/i18npool/source/transliteration/transliteration_Numeric.cxx +++ b/i18npool/source/transliteration/transliteration_Numeric.cxx @@ -72,7 +72,8 @@ transliteration_Numeric::transliterateBullet( const OUString& inStr, sal_Int32 s offset.realloc(nCount); for (sal_Int32 i = startPos; i < endPos; i++) { - if (i < endPos && isNumber(inStr[i])) { + if (isNumber(inStr[i])) + { if (number == -1) { startPos = i; number = (inStr[i] - NUMBER_ZERO); |