aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2017-01-22 20:31:53 -0800
committerBehdad Esfahbod <behdad@behdad.org>2017-01-22 20:31:53 -0800
commitb732c53eb5bd0c2cc86f35a9d9623c92579a0b8c (patch)
tree125c1c5b08b6e0086a62ee801bc1f67a0e7c6557
parent5e156fa5ed33cd1a8ff388833563f15930bb12f9 (diff)
downloadharfbuzz_ng-b732c53eb5bd0c2cc86f35a9d9623c92579a0b8c.tar.gz
Add LArrayOf<>
-rw-r--r--src/hb-open-type-private.hh1
-rw-r--r--src/hb-ot-cbdt-table.hh4
-rw-r--r--src/hb-ot-layout-common-private.hh2
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 <typename Type> struct LArrayOf : ArrayOf<Type, ULONG> {};
/* Array of Offset's */
template <typename Type, typename OffsetType=USHORT>
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<BitmapSizeTable, ULONG> sizeTables;
+ FixedVersion<> version;
+ LArrayOf<BitmapSizeTable> 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<FeatureVariationRecord, ULONG>
+ LArrayOf<FeatureVariationRecord>
varRecords;
public:
DEFINE_SIZE_ARRAY (8, varRecords);