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 --- xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmlscript') diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx index d6902066d2b1..650541dfcf03 100644 --- a/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx +++ b/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx @@ -545,7 +545,7 @@ void FormattedFieldElement::endElement() sal_Int32 semi0 = sLocale.indexOf( ';' ); if (semi0 < 0) // no semi at all, try new BCP47 or just language { - locale = LanguageTag( sLocale).getLocale( false); + locale = LanguageTag::convertToLocale( sLocale, false); } else { -- cgit