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 --- drawinglayer/source/primitive2d/textlayoutdevice.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drawinglayer') diff --git a/drawinglayer/source/primitive2d/textlayoutdevice.cxx b/drawinglayer/source/primitive2d/textlayoutdevice.cxx index 69f042e4b0b1..abe3325d76be 100644 --- a/drawinglayer/source/primitive2d/textlayoutdevice.cxx +++ b/drawinglayer/source/primitive2d/textlayoutdevice.cxx @@ -403,7 +403,7 @@ namespace drawinglayer aRetval.SetItalic(rFontAttribute.getItalic() ? ITALIC_NORMAL : ITALIC_NONE); aRetval.SetOutline(rFontAttribute.getOutline()); aRetval.SetPitch(rFontAttribute.getMonospaced() ? PITCH_FIXED : PITCH_VARIABLE); - aRetval.SetLanguage(LanguageTag(rLocale).getLanguageType(false)); + aRetval.SetLanguage(LanguageTag::convertToLanguageType( rLocale, false)); #ifdef WIN32 // for WIN32 systems, correct the FontWidth if FontScaling is used -- cgit