From 8336186a52813b53e90b4399dc462d55750e2d37 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 4 Aug 2011 19:49:05 -0400 Subject: [PATCH] Zero map objects --- src/hb-ot-map-private.hh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hb-ot-map-private.hh b/src/hb-ot-map-private.hh index 5e6aca3..77474b4 100644 --- a/src/hb-ot-map-private.hh +++ b/src/hb-ot-map-private.hh @@ -44,6 +44,8 @@ struct hb_ot_map_t public: + hb_ot_map_t (void) { memset (this, 0, sizeof (*this)); } + typedef void (*gsub_pause_func_t) (const hb_ot_map_t *map, hb_face_t *face, hb_buffer_t *buffer, void *user_data); typedef void (*gpos_pause_func_t) (const hb_ot_map_t *map, hb_font_t *font, hb_buffer_t *buffer, void *user_data); @@ -137,6 +139,8 @@ struct hb_ot_map_builder_t { public: + hb_ot_map_builder_t (void) { memset (this, 0, sizeof (*this)); } + HB_INTERNAL void add_feature (hb_tag_t tag, unsigned int value, bool global); inline void add_bool_feature (hb_tag_t tag, bool global = true) -- 2.7.4