summaryrefslogtreecommitdiff
path: root/i18nlangtag
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-11 08:42:08 +0200
committerNoel Grandin <noel@peralex.com>2015-08-11 09:48:17 +0200
commitc85cda1eb461d1b27b49ad746e2b2299908b9e75 (patch)
tree1df53d37d1107029ef6a0761d302afb6d4f58abb /i18nlangtag
parentf1639b21507c04a4dfe152776224370eef7088df (diff)
loplugin: defaultparams
Change-Id: I5afe7f9f5caa1f5e55c6218bdb3771571ff0dafa
Diffstat (limited to 'i18nlangtag')
-rw-r--r--i18nlangtag/source/isolang/isolang.cxx2
-rw-r--r--i18nlangtag/source/languagetag/languagetag.cxx10
2 files changed, 6 insertions, 6 deletions
diff --git a/i18nlangtag/source/isolang/isolang.cxx b/i18nlangtag/source/isolang/isolang.cxx
index 157598d5cfde..e1c331bf761b 100644
--- a/i18nlangtag/source/isolang/isolang.cxx
+++ b/i18nlangtag/source/isolang/isolang.cxx
@@ -778,7 +778,7 @@ OUString IsoLanguageScriptCountryEntry::getTagString() const
bool IsoLanguageScriptCountryEntry::startsInIgnoreAsciiCase( const OUString & rStr ) const
{
- return rStr.matchIgnoreAsciiCaseAsciiL( maLanguageScript, strlen( maLanguageScript), 0);
+ return rStr.matchIgnoreAsciiCaseAsciiL( maLanguageScript, strlen( maLanguageScript) );
}
OUString Bcp47CountryEntry::getTagString() const
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();
}