diff options
author | Eike Rathke <erack@redhat.com> | 2013-07-13 02:54:05 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-07-13 11:55:16 +0200 |
commit | 358d1a99484bcc02900bd200a7606a7bf3298cac (patch) | |
tree | 031f808141dbc712553b8a4a029a354a2699a622 /lingucomponent/source/lingutil/lingutil.cxx | |
parent | added static convertTo...() methods (diff) | |
download | core-358d1a99484bcc02900bd200a7606a7bf3298cac.tar.gz core-358d1a99484bcc02900bd200a7606a7bf3298cac.zip |
use static LanguageTag::convertTo...() for standalone conversions
If no LanguageTag instance is at hand use the static methods to convert
between BCP 47 string, Locale and MS-LangID instead of creating
temporary instances.
Change-Id: I9597f768078eb81c840e84a5db5617f26bb7dc09
Diffstat (limited to 'lingucomponent/source/lingutil/lingutil.cxx')
-rw-r--r-- | lingucomponent/source/lingutil/lingutil.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lingucomponent/source/lingutil/lingutil.cxx b/lingucomponent/source/lingutil/lingutil.cxx index bd107fae82a5..f8ae521c2919 100644 --- a/lingucomponent/source/lingutil/lingutil.cxx +++ b/lingucomponent/source/lingutil/lingutil.cxx @@ -198,7 +198,7 @@ void MergeNewStyleDicsAndOldStyleDics( sal_Int32 nLocaleNames = aLocaleNames.getLength(); for (sal_Int32 k = 0; k < nLocaleNames; ++k) { - LanguageType nLang = LanguageTag( aLocaleNames[k] ).getLanguageType(); + LanguageType nLang = LanguageTag::convertToLanguageType( aLocaleNames[k] ); aNewStyleLanguages.insert( nLang ); } } @@ -214,7 +214,7 @@ void MergeNewStyleDicsAndOldStyleDics( DBG_ASSERT( nOldStyleDics, "old style dictionary with more then one language found!"); if (nOldStyleDics > 0) { - LanguageType nLang = LanguageTag( aIt2->aLocaleNames[0] ).getLanguageType(); + LanguageType nLang = LanguageTag::convertToLanguageType( aIt2->aLocaleNames[0] ); if (nLang == LANGUAGE_DONTKNOW || linguistic::LinguIsUnspecified( nLang)) { |