diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-10-31 09:07:27 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-10-31 13:09:29 +0100 |
commit | eb5d232342b1d0f596b6e9c5f8df740a6ec614ff (patch) | |
tree | 9c5a4563ba98c427fa43aef7ee01581789708a66 /i18nlangtag/source/languagetag/languagetag.cxx | |
parent | 33a3de2f0ce2b18d8149dc68c3de16541adfc530 (diff) |
loplugin:constantparam in i18nlangtag
Change-Id: I148a47a9b63b78651ec18cd947f45b8f4dbb9345
Reviewed-on: https://gerrit.libreoffice.org/44094
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'i18nlangtag/source/languagetag/languagetag.cxx')
-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 1e65fe593f6d..3f887de7d6c1 100644 --- a/i18nlangtag/source/languagetag/languagetag.cxx +++ b/i18nlangtag/source/languagetag/languagetag.cxx @@ -961,7 +961,7 @@ LanguageTag::ImplPtr LanguageTag::registerImpl() const // May have involved canonicalize(), so compare with // pImpl->maBcp47 instead of maBcp47! aBcp47 = LanguageTagImpl::convertToBcp47( - MsLangId::Conversion::convertLanguageToLocale( pImpl->mnLangID, true)); + MsLangId::Conversion::convertLanguageToLocale( pImpl->mnLangID )); bInsert = (aBcp47 == pImpl->maBcp47); } } @@ -1344,7 +1344,7 @@ void LanguageTagImpl::convertLocaleToBcp47() // locale via LanguageTag::convertToBcp47(LanguageType) and // LanguageTag::convertToLocale(LanguageType) would instantiate another // LanguageTag. - maLocale = MsLangId::Conversion::convertLanguageToLocale( LANGUAGE_SYSTEM, true); + maLocale = MsLangId::Conversion::convertLanguageToLocale( LANGUAGE_SYSTEM ); } if (maLocale.Language.isEmpty()) { @@ -1488,7 +1488,7 @@ void LanguageTagImpl::convertLangToLocale() mbInitializedLangID = true; } // Resolve system here! The original is remembered as mbSystemLocale. - maLocale = MsLangId::Conversion::convertLanguageToLocale( mnLangID, true); + maLocale = MsLangId::Conversion::convertLanguageToLocale( mnLangID ); mbInitializedLocale = true; } |