Fix const-confusion in hb_array_t as well

This commit is contained in:
Behdad Esfahbod 2018-11-05 13:23:07 -05:00
parent 0da22fb0ad
commit f6e7cb51b1
1 changed files with 2 additions and 4 deletions

View File

@ -553,11 +553,9 @@ struct hb_array_t
inline unsigned int get_size (void) const { return len * sizeof (Type); } inline unsigned int get_size (void) const { return len * sizeof (Type); }
template <typename T> inline operator T * (void) { return arrayZ; } template <typename T> inline operator T * (void) const { return arrayZ; }
template <typename T> inline operator const T * (void) const { return arrayZ; }
inline Type * operator & (void) { return arrayZ; } inline Type * operator & (void) const { return arrayZ; }
inline const Type * operator & (void) const { return arrayZ; }
inline hb_array_t<Type> sub_array (unsigned int start_offset, unsigned int seg_count) const inline hb_array_t<Type> sub_array (unsigned int start_offset, unsigned int seg_count) const
{ {