This commit is contained in:
Behdad Esfahbod 2014-06-27 15:27:15 -04:00
parent 3084767e92
commit 51d9ba09bc
1 changed files with 4 additions and 5 deletions

View File

@ -873,9 +873,8 @@ struct OffsetListOf : OffsetArrayOf<Type>
}; };
/* An array with a USHORT number of elements, /* An array starting at second element. */
* starting at second element. */ template <typename Type, typename LenType=USHORT>
template <typename Type>
struct HeadlessArrayOf struct HeadlessArrayOf
{ {
inline const Type& operator [] (unsigned int i) const inline const Type& operator [] (unsigned int i) const
@ -922,10 +921,10 @@ struct HeadlessArrayOf
return TRACE_RETURN (true); return TRACE_RETURN (true);
} }
USHORT len; LenType len;
Type array[VAR]; Type array[VAR];
public: public:
DEFINE_SIZE_ARRAY (sizeof (USHORT), array); DEFINE_SIZE_ARRAY (sizeof (LenType), array);
}; };