summaryrefslogtreecommitdiff
path: root/linguistic/source/hyphdta.cxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2012-11-24 19:51:53 +0100
committerEike Rathke <erack@redhat.com>2012-11-24 19:53:03 +0100
commitd7a5ec62e91ce3dc5b784815254218f16181f676 (patch)
tree67994cf02b7089e6533f1c66d26c73850b4ac477 /linguistic/source/hyphdta.cxx
parent3bd0013044e41e63cdf790b67af1f0a202dcba87 (diff)
get rid of CreateLocale() and related
Change-Id: Iba035ff20b149b3d85a8c0ea25430892c3e40e3f
Diffstat (limited to 'linguistic/source/hyphdta.cxx')
-rw-r--r--linguistic/source/hyphdta.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/linguistic/source/hyphdta.cxx b/linguistic/source/hyphdta.cxx
index c0c7a1f3551b..b43e6bc63ea6 100644
--- a/linguistic/source/hyphdta.cxx
+++ b/linguistic/source/hyphdta.cxx
@@ -84,8 +84,7 @@ Locale SAL_CALL HyphenatedWord::getLocale()
{
MutexGuard aGuard( GetLinguMutex() );
- Locale aRes;
- return LanguageToLocale( aRes, nLanguage );
+ return LanguageTag( nLanguage ).getLocale();
}
@@ -151,7 +150,7 @@ Locale SAL_CALL PossibleHyphens::getLocale()
throw(RuntimeException)
{
MutexGuard aGuard( GetLinguMutex() );
- return CreateLocale( nLanguage );
+ return LanguageTag( nLanguage ).getLocale();
}