Fix hb_bytes_t's unused template array constructor
This commit is contained in:
parent
6213a75b68
commit
f2e942f302
@ -524,7 +524,7 @@ struct hb_bytes_t
|
||||
inline hb_bytes_t (const char *bytes_, unsigned int len_) : arrayZ (bytes_), len (len_) {}
|
||||
inline hb_bytes_t (const void *bytes_, unsigned int len_) : arrayZ ((const char *) bytes_), len (len_) {}
|
||||
template <typename T>
|
||||
inline hb_bytes_t (const T& array) : arrayZ ((const char *) array.arrayZ), len (array.len) {}
|
||||
inline hb_bytes_t (const T& array) : arrayZ ((const char *) array.arrayZ), len (array.len * sizeof (array.arrayZ[0])) {}
|
||||
|
||||
inline operator const void * (void) const { return arrayZ; }
|
||||
inline operator const char * (void) const { return arrayZ; }
|
||||
|
Loading…
Reference in New Issue
Block a user