summaryrefslogtreecommitdiff
path: root/vcl/generic/glyphs/gcach_layout.cxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-09-20 20:15:05 +0200
committerEike Rathke <erack@redhat.com>2013-09-20 20:17:25 +0200
commitf51e79aaa8cef49421c875c2a876d8570e8b064f (patch)
treea86907a607371104600ec2771b635e43df4931da /vcl/generic/glyphs/gcach_layout.cxx
parent3d246af83bacacedb7c6a15e082210a67cd5566d (diff)
Font and ImplLayoutArgs with LanguageTag
Avoid the gazillion temporary conversions / Impl searches. Change-Id: I5232589f1e31d1cbb6becc198b12daabf1038f31
Diffstat (limited to 'vcl/generic/glyphs/gcach_layout.cxx')
-rw-r--r--vcl/generic/glyphs/gcach_layout.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/vcl/generic/glyphs/gcach_layout.cxx b/vcl/generic/glyphs/gcach_layout.cxx
index fd3ca3607223..01d0904e3d97 100644
--- a/vcl/generic/glyphs/gcach_layout.cxx
+++ b/vcl/generic/glyphs/gcach_layout.cxx
@@ -102,8 +102,7 @@ void ServerFontLayout::setNeedFallback(ImplLayoutArgs& rArgs, sal_Int32 nCharPos
"com.sun.star.i18n.BreakIterator"), uno::UNO_QUERY);
}
- LanguageTag aLangTag(rArgs.meLanguage);
- lang::Locale aLocale(aLangTag.getLocale());
+ lang::Locale aLocale(rArgs.maLanguageTag.getLocale());
//if position nCharPos is missing in the font, grab the entire grapheme and
//mark all glyphs as missing so the whole thing is rendered with the same
@@ -417,8 +416,7 @@ bool HbLayoutEngine::layout(ServerFontLayout& rLayout, ImplLayoutArgs& rArgs)
meScriptCode = eScriptCode;
- LanguageTag aLangTag(rArgs.meLanguage);
- OString sLanguage = OUStringToOString(aLangTag.getLanguage(), RTL_TEXTENCODING_UTF8);
+ OString sLanguage = OUStringToOString(rArgs.maLanguageTag.getLanguage(), RTL_TEXTENCODING_UTF8);
if (pHbUnicodeFuncs == NULL)
pHbUnicodeFuncs = getUnicodeFuncs();