summaryrefslogtreecommitdiff
path: root/i18npool/source/localedata/LocaleNode.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-05-29 11:34:54 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-05-29 13:46:26 +0200
commit6f6f1680ec35b1616c2fc54e5ee8c3b85edf333b (patch)
tree5ec6cfdde2c0c848416155d1d8cab72a3254525e /i18npool/source/localedata/LocaleNode.cxx
parent8581d880f8aa8c2be15c875db291cebbb42841c7 (diff)
loplugin:simplifybool in hwpfilter..lotuswordpro
Change-Id: Iedfd492c963eb89fe75fdd73cae630e7e1dae119 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95100 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'i18npool/source/localedata/LocaleNode.cxx')
-rw-r--r--i18npool/source/localedata/LocaleNode.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/i18npool/source/localedata/LocaleNode.cxx b/i18npool/source/localedata/LocaleNode.cxx
index dd23465bea19..ddc8cf46dfd1 100644
--- a/i18npool/source/localedata/LocaleNode.cxx
+++ b/i18npool/source/localedata/LocaleNode.cxx
@@ -235,7 +235,7 @@ void LCInfoNode::generateCode (const OFileWriter &of) const
if (languageNode)
{
aLanguage = languageNode->getChildAt(0)->getValue();
- if (!(aLanguage.getLength() == 2 || aLanguage.getLength() == 3))
+ if (aLanguage.getLength() != 2 && aLanguage.getLength() != 3)
incErrorStr( "Error: langID '%s' not 2-3 characters\n", aLanguage);
of.writeParameter("langID", aLanguage);
of.writeParameter("langDefaultName", languageNode->getChildAt(1)->getValue());