From 358d1a99484bcc02900bd200a7606a7bf3298cac Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Sat, 13 Jul 2013 02:54:05 +0200 Subject: 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 --- svtools/langsupport/langsupport.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svtools/langsupport') diff --git a/svtools/langsupport/langsupport.cxx b/svtools/langsupport/langsupport.cxx index 226187a5d020..12269cada3d7 100644 --- a/svtools/langsupport/langsupport.cxx +++ b/svtools/langsupport/langsupport.cxx @@ -56,7 +56,7 @@ SAL_IMPLEMENT_MAIN() continue; } - OUString sTag( LanguageTag( eLang).getBcp47()); + OUString sTag( LanguageTag::convertToBcp47( eLang)); std::cout << OUStringToOString(sTag, osl_getThreadTextEncoding()).getStr() << std::endl; -- cgit