From ab57bcae0fd4505c80bb4ccdef6838bb2805ce79 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 7 Nov 2018 13:04:21 -0500 Subject: [PATCH] [kern] Minor --- src/hb-ot-kern-table.hh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/hb-ot-kern-table.hh b/src/hb-ot-kern-table.hh index 5046a0da5..693c4f29f 100644 --- a/src/hb-ot-kern-table.hh +++ b/src/hb-ot-kern-table.hh @@ -166,7 +166,7 @@ struct KernTable inline int get_h_kerning (hb_codepoint_t left, hb_codepoint_t right) const { - typedef KernSubTable SubTable; + typedef typename T::SubTable SubTable; int v = 0; const SubTable *st = &thiz()->firstSubTable; @@ -184,7 +184,7 @@ struct KernTable inline void apply (AAT::hb_aat_apply_context_t *c) const { - typedef KernSubTable SubTable; + typedef typename T::SubTable SubTable; c->set_lookup_index (0); const SubTable *st = &thiz()->firstSubTable; @@ -220,7 +220,7 @@ struct KernTable !thiz()->tableCount.sanitize (c))) return_trace (false); - typedef KernSubTable SubTable; + typedef typename T::SubTable SubTable; const SubTable *st = &thiz()->firstSubTable; unsigned int count = thiz()->tableCount; @@ -273,6 +273,7 @@ struct KernOT : KernTable friend struct KernTable; typedef KernOTSubTableHeader SubTableHeader; + typedef KernSubTable SubTable; static const uint16_t minVersion = 0; @@ -321,6 +322,7 @@ struct KernAAT : KernTable friend struct KernTable; typedef KernAATSubTableHeader SubTableHeader; + typedef KernSubTable SubTable; static const uint32_t minVersion = 0x00010000u;