diff options
author | Noel Grandin <noel@peralex.com> | 2015-08-11 08:42:08 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-08-11 09:48:17 +0200 |
commit | c85cda1eb461d1b27b49ad746e2b2299908b9e75 (patch) | |
tree | 1df53d37d1107029ef6a0761d302afb6d4f58abb /i18nlangtag/source/languagetag/languagetag.cxx | |
parent | f1639b21507c04a4dfe152776224370eef7088df (diff) |
loplugin: defaultparams
Change-Id: I5afe7f9f5caa1f5e55c6218bdb3771571ff0dafa
Diffstat (limited to 'i18nlangtag/source/languagetag/languagetag.cxx')
-rw-r--r-- | i18nlangtag/source/languagetag/languagetag.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/i18nlangtag/source/languagetag/languagetag.cxx b/i18nlangtag/source/languagetag/languagetag.cxx index 906c7b3cc94a..34eaeb8bb2f9 100644 --- a/i18nlangtag/source/languagetag/languagetag.cxx +++ b/i18nlangtag/source/languagetag/languagetag.cxx @@ -1327,7 +1327,7 @@ void LanguageTagImpl::convertLocaleToBcp47() } else { - maBcp47 = LanguageTag::convertToBcp47( maLocale, true); + maBcp47 = LanguageTag::convertToBcp47( maLocale ); } mbInitializedBcp47 = true; } @@ -2022,7 +2022,7 @@ LanguageTag & LanguageTag::makeFallback() { if (!mbIsFallback) { - const lang::Locale& rLocale1 = getLocale( true); + const lang::Locale& rLocale1 = getLocale(); lang::Locale aLocale2( MsLangId::Conversion::lookupFallbackLocale( rLocale1)); if ( rLocale1.Language != aLocale2.Language || rLocale1.Country != aLocale2.Country || @@ -2629,7 +2629,7 @@ OUString LanguageTag::convertToBcp47( const com::sun::star::lang::Locale& rLocal if (rLocale.Language.isEmpty()) { if (bResolveSystem) - aBcp47 = LanguageTag::convertToBcp47( LANGUAGE_SYSTEM, true); + aBcp47 = LanguageTag::convertToBcp47( LANGUAGE_SYSTEM ); // else aBcp47 stays empty } else @@ -2680,14 +2680,14 @@ LanguageType LanguageTag::convertToLanguageType( const OUString& rBcp47, bool bR // static LanguageType LanguageTag::convertToLanguageTypeWithFallback( const OUString& rBcp47 ) { - return LanguageTag( rBcp47).makeFallback().getLanguageType( true); + return LanguageTag( rBcp47).makeFallback().getLanguageType(); } // static com::sun::star::lang::Locale LanguageTag::convertToLocaleWithFallback( const OUString& rBcp47 ) { - return LanguageTag( rBcp47).makeFallback().getLocale( true); + return LanguageTag( rBcp47).makeFallback().getLocale(); } |