From b732c53eb5bd0c2cc86f35a9d9623c92579a0b8c Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 22 Jan 2017 20:31:53 -0800 Subject: [PATCH] Add LArrayOf<> --- src/hb-open-type-private.hh | 1 + src/hb-ot-cbdt-table.hh | 4 ++-- src/hb-ot-layout-common-private.hh | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/hb-open-type-private.hh b/src/hb-open-type-private.hh index 8bd361868..d90d68c59 100644 --- a/src/hb-open-type-private.hh +++ b/src/hb-open-type-private.hh @@ -952,6 +952,7 @@ struct ArrayOf public: DEFINE_SIZE_ARRAY (sizeof (LenType), array); }; +template struct LArrayOf : ArrayOf {}; /* Array of Offset's */ template diff --git a/src/hb-ot-cbdt-table.hh b/src/hb-ot-cbdt-table.hh index 93cf0e853..0a7fbf5b7 100644 --- a/src/hb-ot-cbdt-table.hh +++ b/src/hb-ot-cbdt-table.hh @@ -348,8 +348,8 @@ struct CBLC } protected: - FixedVersion<>version; - ArrayOf sizeTables; + FixedVersion<> version; + LArrayOf sizeTables; public: DEFINE_SIZE_ARRAY(8, sizeTables); diff --git a/src/hb-ot-layout-common-private.hh b/src/hb-ot-layout-common-private.hh index 2f83497b4..92b5c17ee 100644 --- a/src/hb-ot-layout-common-private.hh +++ b/src/hb-ot-layout-common-private.hh @@ -1527,7 +1527,7 @@ struct FeatureVariations protected: FixedVersion<> version; /* Version--0x00010000u */ - ArrayOf + LArrayOf varRecords; public: DEFINE_SIZE_ARRAY (8, varRecords);