diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2018-11-25 19:52:09 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2018-11-25 20:35:57 +0100 |
commit | 4ac2f1799f1d6d428c06e5699c246184dd8590ad (patch) | |
tree | b96b61a7a037074d3155b63f30c01fbf276c491f /i18npool | |
parent | 1bc269504bc16b188f77204f53f1c34541750da9 (diff) |
tdf#120703 PVS: V560 A part of conditional expression is always true/false
Change-Id: I2ae298f49ceba8059cd7236431db9a4d9a46b125
Reviewed-on: https://gerrit.libreoffice.org/63992
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'i18npool')
-rw-r--r-- | i18npool/source/localedata/LocaleNode.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/i18npool/source/localedata/LocaleNode.cxx b/i18npool/source/localedata/LocaleNode.cxx index 11d3f4bb070c..a3d2595022f0 100644 --- a/i18npool/source/localedata/LocaleNode.cxx +++ b/i18npool/source/localedata/LocaleNode.cxx @@ -2025,7 +2025,7 @@ void LCMiscNode::generateCode (const OFileWriter &of) const } of.writeParameter("ReservedWord", str, nbOfWords); // "true", ..., "below" trigger untranslated warning. - if (!bEnglishLocale && curNode && (0 <= i && i <= 7) && + if (!bEnglishLocale && curNode && i <= 7 && str.equalsIgnoreAsciiCaseAscii( ReserveWord[i].value)) { fprintf( stderr, |