summaryrefslogtreecommitdiffstats
path: root/include/i18nlangtag
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-03-03 13:04:59 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-03-03 11:39:56 +0000
commit5adde1bf69828da955f5f8ae8d36a4bd52eee055 (patch)
tree19b20375684dd8bb328ceb59a7b035ad7d352bd9 /include/i18nlangtag
parenttdf#98224: endless loop in replace all stopped (diff)
downloadcore-5adde1bf69828da955f5f8ae8d36a4bd52eee055.tar.gz
core-5adde1bf69828da955f5f8ae8d36a4bd52eee055.zip
loplugin:unuseddefaultparams various
Change-Id: Ibf8489c957b307156689de4c7cb8440ddd4e4546 Reviewed-on: https://gerrit.libreoffice.org/22852 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/i18nlangtag')
-rw-r--r--include/i18nlangtag/languagetag.hxx18
1 files changed, 7 insertions, 11 deletions
diff --git a/include/i18nlangtag/languagetag.hxx b/include/i18nlangtag/languagetag.hxx
index 0c54bfd6d110..2bbf0331d86f 100644
--- a/include/i18nlangtag/languagetag.hxx
+++ b/include/i18nlangtag/languagetag.hxx
@@ -239,7 +239,7 @@ public:
/** Reset with existing BCP 47 language tag string. See ctor. */
- LanguageTag & reset( const OUString & rBcp47LanguageTag, bool bCanonicalize = false );
+ LanguageTag & reset( const OUString & rBcp47LanguageTag );
/** Reset with Locale. */
LanguageTag & reset( const css::lang::Locale & rLocale );
@@ -411,12 +411,10 @@ public:
/** Convert MS-LangID to BCP 47 string.
- @param bResolveSystem
- If TRUE, resolve an empty language tag denoting the system
- locale to the real locale used.
- If FALSE, return an empty OUString for such a tag.
+ Resolve an empty language tag denoting the system
+ locale to the real locale used.
*/
- static OUString convertToBcp47( LanguageType nLangID, bool bResolveSystem = true );
+ static OUString convertToBcp47( LanguageType nLangID );
/** Convert Locale to BCP 47 string.
@@ -448,12 +446,10 @@ public:
conversion so does not save anything compared to
LanguageTag(rBcp47).getLanguageType(bResolveSystem).
- @param bResolveSystem
- If TRUE, resolve an empty language tag denoting the system
- locale to the real locale used.
- If FALSE, return LANGUAGE_SYSTEM for such a tag.
+ Resolve an empty language tag denoting the system
+ locale to the real locale used.
*/
- static LanguageType convertToLanguageType( const OUString& rBcp47, bool bResolveSystem = true );
+ static LanguageType convertToLanguageType( const OUString& rBcp47 );
/** Convert BCP 47 string to MS-LangID with fallback, convenience method.