diff --git a/src/hb-private.hh b/src/hb-private.hh index d27d58051..a9a6bda4b 100644 --- a/src/hb-private.hh +++ b/src/hb-private.hh @@ -701,11 +701,16 @@ struct hb_prealloced_array_t }; template -struct hb_auto_array_t : hb_prealloced_array_t +struct hb_auto_t : Type { - hb_auto_array_t (void) { hb_prealloced_array_t::init (); } - ~hb_auto_array_t (void) { hb_prealloced_array_t::fini (); } + hb_auto_t (void) { Type::init (); } + ~hb_auto_t (void) { Type::fini (); } + private: /* Hide */ + void init (void) {} + void fini (void) {} }; +template +struct hb_auto_array_t : hb_auto_t > {}; #define HB_LOCKABLE_SET_INIT {HB_PREALLOCED_ARRAY_INIT}