From: Behdad Esfahbod Date: Wed, 7 Nov 2018 17:51:49 +0000 (-0500) Subject: [kern] Massage more X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1ff300464a1075b8cd5311970afbbcf4bb3b6f3d;p=platform%2Fupstream%2FlibHarfBuzzSharp.git [kern] Massage more --- diff --git a/src/hb-ot-kern-table.hh b/src/hb-ot-kern-table.hh index 5384511..461a244 100644 --- a/src/hb-ot-kern-table.hh +++ b/src/hb-ot-kern-table.hh @@ -169,7 +169,7 @@ struct KernTable typedef KernSubTable SubTable; int v = 0; - const SubTable *st = CastP (&thiz()->dataZ); + const SubTable *st = &thiz()->firstSubTable; unsigned int count = thiz()->tableCount; for (unsigned int i = 0; i < count; i++) { @@ -187,9 +187,8 @@ struct KernTable typedef KernSubTable SubTable; c->set_lookup_index (0); - const SubTable *st = CastP (&thiz()->dataZ); + const SubTable *st = &thiz()->firstSubTable; unsigned int count = thiz()->tableCount; - st = CastP (&thiz()->dataZ); for (unsigned int i = 0; i < count; i++) { if (st->u.header.coverage & st->u.header.Variation) @@ -223,7 +222,7 @@ struct KernTable typedef KernSubTable SubTable; - const SubTable *st = CastP (&thiz()->dataZ); + const SubTable *st = &thiz()->firstSubTable; unsigned int count = thiz()->tableCount; for (unsigned int i = 0; i < count; i++) { @@ -277,9 +276,9 @@ struct KernOT : KernTable protected: HBUINT16 version; /* Version--0x0000u */ HBUINT16 tableCount; /* Number of subtables in the kerning table. */ - UnsizedArrayOf dataZ; + KernSubTable firstSubTable; /* Subtables. */ public: - DEFINE_SIZE_ARRAY (4, dataZ); + DEFINE_SIZE_MIN (4); }; struct KernAAT : KernTable @@ -322,9 +321,9 @@ struct KernAAT : KernTable protected: HBUINT32 version; /* Version--0x00010000u */ HBUINT32 tableCount; /* Number of subtables in the kerning table. */ - UnsizedArrayOf dataZ; + KernSubTable firstSubTable; /* Subtables. */ public: - DEFINE_SIZE_ARRAY (8, dataZ); + DEFINE_SIZE_MIN (8); }; struct kern