diff --git a/src/hb-private.hh b/src/hb-private.hh index 5179912ff..f2f580a54 100644 --- a/src/hb-private.hh +++ b/src/hb-private.hh @@ -272,7 +272,7 @@ typedef int (*hb_compare_func_t) (const void *, const void *); #define HB_PREALLOCED_ARRAY_INIT {0} -template +template struct hb_prealloced_array_t { unsigned int len; @@ -383,12 +383,11 @@ struct hb_prealloced_array_t } }; -#define HB_AUTO_ARRAY_PREALLOCED 16 template -struct hb_auto_array_t : hb_prealloced_array_t +struct hb_auto_array_t : hb_prealloced_array_t { - hb_auto_array_t (void) { hb_prealloced_array_t::init (); } - ~hb_auto_array_t (void) { hb_prealloced_array_t::finish (); } + hb_auto_array_t (void) { hb_prealloced_array_t::init (); } + ~hb_auto_array_t (void) { hb_prealloced_array_t::finish (); } };