summaryrefslogtreecommitdiff
path: root/i18nlangtag
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-04-24 09:23:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-04-24 10:05:54 +0200
commita975225678c00272fc6e2ee2c85e6fe00a2204f1 (patch)
tree47aa7fdcd49221fd3084b9d77418b6690b7bc0e0 /i18nlangtag
parent78a3a304871eb3eb861a49ed00345b54fba01114 (diff)
clang-tidy readability-simplify-boolean-expr in hwpfilter..lotuswordpro
Change-Id: I945d3fe6af5f88937b341dfc3696bf1d36344862 Reviewed-on: https://gerrit.libreoffice.org/36874 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'i18nlangtag')
-rw-r--r--i18nlangtag/source/languagetag/languagetag.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/i18nlangtag/source/languagetag/languagetag.cxx b/i18nlangtag/source/languagetag/languagetag.cxx
index 446f06b3f0ac..0601d03b3e88 100644
--- a/i18nlangtag/source/languagetag/languagetag.cxx
+++ b/i18nlangtag/source/languagetag/languagetag.cxx
@@ -2638,9 +2638,7 @@ static bool lcl_isSystem( LanguageType nLangID )
// There are some special values that simplify to SYSTEM,
// getRealLanguage() catches and resolves them.
LanguageType nNewLangID = MsLangId::getRealLanguage( nLangID);
- if (nNewLangID != nLangID)
- return true;
- return false;
+ return nNewLangID != nLangID;
}