summaryrefslogtreecommitdiffstats
path: root/vcl
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2014-02-04 10:19:46 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2014-02-05 01:31:36 +0200
commit9140d2795494cf318e2e149a5cef03088746fd80 (patch)
treeada5ab51f7fac304f0033be205d9f961fbbdd665 /vcl
parentSet HarfBuzz buffer flags for text boundaries (diff)
downloadcore-9140d2795494cf318e2e149a5cef03088746fd80.tar.gz
core-9140d2795494cf318e2e149a5cef03088746fd80.zip
Minor
Change-Id: Ic2182ffc76d63b966fc381dadb59af344dda945e
Diffstat (limited to 'vcl')
-rw-r--r--vcl/generic/glyphs/gcach_layout.cxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/vcl/generic/glyphs/gcach_layout.cxx b/vcl/generic/glyphs/gcach_layout.cxx
index 9c119bb1b2fc..dcf21965801c 100644
--- a/vcl/generic/glyphs/gcach_layout.cxx
+++ b/vcl/generic/glyphs/gcach_layout.cxx
@@ -132,9 +132,6 @@ std::ostream &operator <<(std::ostream& s, ServerFont* pFont)
return s;
}
-static hb_font_funcs_t* pHbFontFuncs = NULL;
-static hb_unicode_funcs_t* pHbUnicodeFuncs = NULL;
-
static hb_blob_t *getFontTable(hb_face_t* /*face*/, hb_tag_t nTableTag, void* pUserData)
{
char pTagName[5];
@@ -374,8 +371,7 @@ bool HbLayoutEngine::layout(ServerFontLayout& rLayout, ImplLayoutArgs& rArgs)
SAL_INFO("vcl.harfbuzz", "layout(" << this << ",rArgs=" << rArgs << ")");
- if (pHbFontFuncs == NULL)
- pHbFontFuncs = getFontFuncs();
+ static hb_font_funcs_t* pHbFontFuncs = getFontFuncs();
hb_font_t *pHbFont = hb_font_create(mpHbFace);
hb_font_set_funcs(pHbFont, pHbFontFuncs, &rFont, NULL);
@@ -435,8 +431,7 @@ bool HbLayoutEngine::layout(ServerFontLayout& rLayout, ImplLayoutArgs& rArgs)
OString sLanguage = OUStringToOString(rArgs.maLanguageTag.getLanguage(), RTL_TEXTENCODING_UTF8);
- if (pHbUnicodeFuncs == NULL)
- pHbUnicodeFuncs = getUnicodeFuncs();
+ static hb_unicode_funcs_t* pHbUnicodeFuncs = getUnicodeFuncs();
int nHbFlags = HB_BUFFER_FLAG_DEFAULT;
if (nMinRunPos == 0)