mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-23 07:51:10 +01:00
Add a constructor for hb_prealloced_array_t
Fixes build with MSVC.
This commit is contained in:
1 parent
d75333f166
commit
efde811325
1 file changed
+2
@@ -240,6 +240,8 @@ struct hb_prealloced_array_t {
|
||||
Type *array;
|
||||
Type static_array[StaticSize];
|
||||
|
||||
hb_prealloced_array_t (void) { memset (this, 0, sizeof (*this)); }
|
||||
|
||||
inline Type& operator [] (unsigned int i) { return array[i]; }
|
||||
inline const Type& operator [] (unsigned int i) const { return array[i]; }
|
||||
|
||||
|
||||
Reference in new issue
Block a user