summaryrefslogtreecommitdiff
path: root/i18nlangtag
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-04 11:11:21 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-04-04 13:41:00 +0000
commit8372d8532ba3aa3d1ec346a73d8fe9f406001f79 (patch)
tree17e7ac50008081f557bae97eea4e2beaf9be4bc9 /i18nlangtag
parente0f9bb795251d950b5dd960fcd030170c8eb67aa (diff)
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.cxx6
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();
}