summaryrefslogtreecommitdiffstats
path: root/lingucomponent/source/thesaurus
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-07-13 02:54:05 +0200
committerEike Rathke <erack@redhat.com>2013-07-13 11:55:16 +0200
commit358d1a99484bcc02900bd200a7606a7bf3298cac (patch)
tree031f808141dbc712553b8a4a029a354a2699a622 /lingucomponent/source/thesaurus
parentadded static convertTo...() methods (diff)
downloadcore-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/thesaurus')
-rw-r--r--lingucomponent/source/thesaurus/libnth/nthesimp.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/lingucomponent/source/thesaurus/libnth/nthesimp.cxx b/lingucomponent/source/thesaurus/libnth/nthesimp.cxx
index 69bc07bff183..4bf271d02cd3 100644
--- a/lingucomponent/source/thesaurus/libnth/nthesimp.cxx
+++ b/lingucomponent/source/thesaurus/libnth/nthesimp.cxx
@@ -187,7 +187,7 @@ Sequence< Locale > SAL_CALL Thesaurus::getLocales()
k = 0;
for (aItB = aLocaleNamesSet.begin(); aItB != aLocaleNamesSet.end(); ++aItB)
{
- Locale aTmp( LanguageTag( *aItB ).getLocale());
+ Locale aTmp( LanguageTag::convertToLocale( *aItB ));
aSuppLocales[k++] = aTmp;
}