mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-23 07:51:10 +01:00
Fix &array_of<>
This commit is contained in:
1 parent
9b7cb13794
commit
91de9dfcf3
2 files changed
+5
-2
No files matched your search
@@ -556,6 +556,9 @@ struct hb_array_t
|
||||
template <typename T> inline operator T * (void) { return arrayZ; }
|
||||
template <typename T> inline operator const T * (void) const { return arrayZ; }
|
||||
|
||||
inline Type * operator & (void) { 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
|
||||
{
|
||||
unsigned int count = len;
|
||||
|
||||
+2
-2
@@ -340,7 +340,7 @@ struct UnsizedArrayOf
|
||||
inline const Type& operator [] (unsigned int i) const { return arrayZ[i]; }
|
||||
inline Type& operator [] (unsigned int i) { return arrayZ[i]; }
|
||||
|
||||
template <typename T> inline operator T * (void) { return arrayZ; }
|
||||
template <typename T> inline operator T * (void) { return arrayZ; }
|
||||
template <typename T> inline operator const T * (void) const { return arrayZ; }
|
||||
|
||||
inline unsigned int get_size (unsigned int len) const
|
||||
@@ -452,7 +452,7 @@ struct ArrayOf
|
||||
return arrayZ[i];
|
||||
}
|
||||
|
||||
template <typename T> inline operator T * (void) { return arrayZ; }
|
||||
template <typename T> inline operator T * (void) { return arrayZ; }
|
||||
template <typename T> inline operator const T * (void) const { return arrayZ; }
|
||||
|
||||
inline unsigned int get_size (void) const
|
||||
|
||||
Reference in new issue
Block a user