summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-02-13 18:12:51 +0100
committerEike Rathke <erack@redhat.com>2013-02-15 13:57:26 +0100
commit5918c7c84c18042baba42e5899f00d69254e3586 (patch)
tree0ace23456b3f636fc27baaf144b4433133496b9e /i18npool
parentb2c29ebb4cd9cb9fa9f4c78bfe1a27775f899fdc (diff)
use LanguageTag(rtl_Locale) ctor
Change-Id: Ie668d40b815ae1cbcdb321649d8e52513cad1aec
Diffstat (limited to 'i18npool')
-rw-r--r--i18npool/source/isolang/inunx.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/i18npool/source/isolang/inunx.cxx b/i18npool/source/isolang/inunx.cxx
index 778446a505f3..005421c76c18 100644
--- a/i18npool/source/isolang/inunx.cxx
+++ b/i18npool/source/isolang/inunx.cxx
@@ -99,10 +99,7 @@ static void getPlatformSystemLanguageImpl( LanguageType& rSystemLanguage,
if ( osl_getProcessLocale(&procLocale) == osl_Process_E_None )
{
- rtl::OUString rLang( procLocale->Language );
- rtl::OUString rCountry( procLocale->Country );
-
- nLang = LanguageTag( rLang, rCountry ).getLanguageType();
+ nLang = LanguageTag( *procLocale ).getLanguageType();
OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
rSystemLanguage = nLang;
#ifdef DEBUG