diff options
author | Eike Rathke <erack@redhat.com> | 2013-07-11 18:50:13 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-07-11 19:15:52 +0200 |
commit | 759d56352faf463bba11369f1a7be8bed3814f90 (patch) | |
tree | 16161aa41c599745a12518c867d0bf8a5638aa62 /svl | |
parent | 96a5c866a94590c993629013c41f00b7d496f70e (diff) |
use LanguageTag to convert
Change-Id: I721f1018e6380a3102b6dd20052001b1e950421b
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/config/asiancfg.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/svl/source/config/asiancfg.cxx b/svl/source/config/asiancfg.cxx index 99e36eb439eb..695f7623eb9e 100644 --- a/svl/source/config/asiancfg.cxx +++ b/svl/source/config/asiancfg.cxx @@ -105,10 +105,7 @@ css::uno::Sequence< css::lang::Locale > SvxAsianConfig::GetStartEndCharLocales() getElementNames()); css::uno::Sequence< css::lang::Locale > ls(ns.getLength()); for (sal_Int32 i = 0; i < ns.getLength(); ++i) { - sal_Int32 n = 0; - ls[i].Language = ns[i].getToken(0, '-', n); - ls[i].Country = ns[i].getToken(0, '-', n); - ls[i].Variant = ns[i].getToken(0, '-', n); + ls[i] = LanguageTag( ns[i]).getLocale( false); } return ls; } |