Add LArrayOf<>
authorBehdad Esfahbod <behdad@behdad.org>
Mon, 23 Jan 2017 04:31:53 +0000 (20:31 -0800)
committerBehdad Esfahbod <behdad@behdad.org>
Mon, 23 Jan 2017 04:31:53 +0000 (20:31 -0800)
src/hb-open-type-private.hh
src/hb-ot-cbdt-table.hh
src/hb-ot-layout-common-private.hh

index 8bd3618..d90d68c 100644 (file)
@@ -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>
index 93cf0e8..0a7fbf5 100644 (file)
@@ -348,8 +348,8 @@ struct CBLC
   }
 
   protected:
-  FixedVersion<>version;
-  ArrayOf<BitmapSizeTable, ULONG> sizeTables;
+  FixedVersion<>               version;
+  LArrayOf<BitmapSizeTable>    sizeTables;
 
   public:
   DEFINE_SIZE_ARRAY(8, sizeTables);
index 2f83497..92b5c17 100644 (file)
@@ -1527,7 +1527,7 @@ struct FeatureVariations
 
   protected:
   FixedVersion<>       version;        /* Version--0x00010000u */
-  ArrayOf<FeatureVariationRecord, ULONG>
+  LArrayOf<FeatureVariationRecord>
                        varRecords;
   public:
   DEFINE_SIZE_ARRAY (8, varRecords);