This commit is contained in:
Behdad Esfahbod 2018-12-20 23:14:24 -05:00
parent e6ebc9b6f8
commit bd36977392
3 changed files with 4 additions and 4 deletions

View File

@ -36,7 +36,7 @@ struct hb_sorted_array_t;
template <typename Type> template <typename Type>
struct hb_array_t struct hb_array_t
{ {
typedef Type ItemType; typedef Type item_type_t;
enum { item_size = hb_static_size (Type) }; enum { item_size = hb_static_size (Type) };
/* /*

View File

@ -352,7 +352,7 @@ static inline Type& operator + (Base &base, OffsetTo<Type, OffsetType, has_null>
template <typename Type> template <typename Type>
struct UnsizedArrayOf struct UnsizedArrayOf
{ {
typedef Type ItemType; typedef Type item_type_t;
enum { item_size = hb_static_size (Type) }; enum { item_size = hb_static_size (Type) };
HB_NO_CREATE_COPY_ASSIGN_TEMPLATE (UnsizedArrayOf, Type); HB_NO_CREATE_COPY_ASSIGN_TEMPLATE (UnsizedArrayOf, Type);
@ -508,7 +508,7 @@ struct SortedUnsizedArrayOf : UnsizedArrayOf<Type>
template <typename Type, typename LenType=HBUINT16> template <typename Type, typename LenType=HBUINT16>
struct ArrayOf struct ArrayOf
{ {
typedef Type ItemType; typedef Type item_type_t;
enum { item_size = hb_static_size (Type) }; enum { item_size = hb_static_size (Type) };
HB_NO_CREATE_COPY_ASSIGN_TEMPLATE2 (ArrayOf, Type, LenType); HB_NO_CREATE_COPY_ASSIGN_TEMPLATE2 (ArrayOf, Type, LenType);

View File

@ -34,7 +34,7 @@
template <typename Type, unsigned int PreallocedCount=8> template <typename Type, unsigned int PreallocedCount=8>
struct hb_vector_t struct hb_vector_t
{ {
typedef Type ItemType; typedef Type item_type_t;
enum { item_size = hb_static_size (Type) }; enum { item_size = hb_static_size (Type) };
HB_NO_COPY_ASSIGN_TEMPLATE2 (hb_vector_t, Type, PreallocedCount); HB_NO_COPY_ASSIGN_TEMPLATE2 (hb_vector_t, Type, PreallocedCount);