From c85cda1eb461d1b27b49ad746e2b2299908b9e75 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 11 Aug 2015 08:42:08 +0200 Subject: loplugin: defaultparams Change-Id: I5afe7f9f5caa1f5e55c6218bdb3771571ff0dafa --- i18nlangtag/source/languagetag/languagetag.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'i18nlangtag/source/languagetag') 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(); } -- cgit