diff options
author | Noel Grandin <noel@peralex.com> | 2016-04-04 11:11:21 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-04-04 13:41:00 +0000 |
commit | 8372d8532ba3aa3d1ec346a73d8fe9f406001f79 (patch) | |
tree | 17e7ac50008081f557bae97eea4e2beaf9be4bc9 /i18nlangtag | |
parent | tdf#99074 DOCX import: handle <w:view w:val="web"/> (diff) | |
download | core-8372d8532ba3aa3d1ec346a73d8fe9f406001f79.tar.gz core-8372d8532ba3aa3d1ec346a73d8fe9f406001f79.zip |
loplugin:constantparam in i18nlangtag
Change-Id: I3d7cbac7ca58f3de9771a1221196f851255f3fb9
Reviewed-on: https://gerrit.libreoffice.org/23802
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'i18nlangtag')
-rw-r--r-- | i18nlangtag/source/languagetag/languagetag.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/i18nlangtag/source/languagetag/languagetag.cxx b/i18nlangtag/source/languagetag/languagetag.cxx index dc8708b3cd24..e8df2a4a1593 100644 --- a/i18nlangtag/source/languagetag/languagetag.cxx +++ b/i18nlangtag/source/languagetag/languagetag.cxx @@ -2268,15 +2268,15 @@ LanguageTag & LanguageTag::makeFallback() } -bool LanguageTag::equals( const LanguageTag & rLanguageTag, bool bResolveSystem ) const +bool LanguageTag::equals( const LanguageTag & rLanguageTag ) const { // If SYSTEM is not to be resolved or either both are SYSTEM or none, we // can use the operator==() optimization. - if (!bResolveSystem || isSystemLocale() == rLanguageTag.isSystemLocale()) + if (isSystemLocale() == rLanguageTag.isSystemLocale()) return operator==( rLanguageTag); // Compare full language tag strings. - return getBcp47( bResolveSystem) == rLanguageTag.getBcp47( bResolveSystem); + return getBcp47() == rLanguageTag.getBcp47(); } |