summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2016-08-30 21:23:06 +0200
committerEike Rathke <erack@redhat.com>2016-08-30 21:23:42 +0200
commit628bb5ce3c9774e9b499aad81bae300ef023b25c (patch)
treeee2947fb6d90ebb31145e7d07de8b72b87206d26 /linguistic
parent9a2d6e7e77a660560af9d5b1bbe3a5171176f8d6 (diff)
pass the already available bcp47 string instead of yet another conversion
Change-Id: I6ed8428b28300cdd0586d505211e45d76a622115
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/lngsvcmgr.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/linguistic/source/lngsvcmgr.cxx b/linguistic/source/lngsvcmgr.cxx
index aefcdde0e83c..566d6c4e594e 100644
--- a/linguistic/source/lngsvcmgr.cxx
+++ b/linguistic/source/lngsvcmgr.cxx
@@ -580,20 +580,18 @@ namespace
Sequence< OUString > lcl_GetLastFoundSvcs(
SvtLinguConfig &rCfg,
const OUString &rLastFoundList ,
- const Locale &rAvailLocale )
+ const OUString& rCfgLocaleStr )
{
Sequence< OUString > aRes;
- OUString aCfgLocaleStr( LanguageTag::convertToBcp47( rAvailLocale ) );
-
Sequence< OUString > aNodeNames( rCfg.GetNodeNames(rLastFoundList) );
- bool bFound = lcl_FindEntry( aCfgLocaleStr, aNodeNames);
+ bool bFound = lcl_FindEntry( rCfgLocaleStr, aNodeNames);
if (bFound)
{
Sequence< OUString > aNames(1);
OUString &rNodeName = aNames.getArray()[0];
- rNodeName = rLastFoundList + "/" + aCfgLocaleStr;
+ rNodeName = rLastFoundList + "/" + rCfgLocaleStr;
Sequence< Any > aValues( rCfg.GetProperties( aNames ) );
if (aValues.getLength())
{
@@ -741,7 +739,7 @@ void LngSvcMgr::UpdateAll()
aLastFoundSvcs[k][ aCfgLocaleStr ] = aAvailSvcs;
Sequence< OUString > aLastSvcs(
- lcl_GetLastFoundSvcs( aCfg, aLastFoundList , pAvailLocale[i] ));
+ lcl_GetLastFoundSvcs( aCfg, aLastFoundList , aCfgLocaleStr ));
Sequence< OUString > aNewSvcs =
lcl_GetNewEntries( aLastSvcs, aAvailSvcs );