From bdbe047d6ce3d8873c6740500d38d1b0c4e851f8 Mon Sep 17 00:00:00 2001 From: Garret Rieger Date: Mon, 28 Jan 2019 16:59:15 -0800 Subject: [PATCH] [subset] Update hb-subset-plan.cc to match hb-subset-plan.hh. --- src/hb-subset-plan.cc | 20 ++++++++++---------- src/hb-subset-plan.hh | 1 - 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/src/hb-subset-plan.cc b/src/hb-subset-plan.cc index 4b358aca4..cc298b4d0 100644 --- a/src/hb-subset-plan.cc +++ b/src/hb-subset-plan.cc @@ -204,21 +204,21 @@ hb_subset_plan_create (hb_face_t *face, plan->drop_layout = input->drop_layout; plan->desubroutinize = input->desubroutinize; plan->unicodes = hb_set_create(); - plan->glyphs.init(); + plan->glyphs_deprecated.init(); plan->source = hb_face_reference (face); plan->dest = hb_face_builder_create (); plan->codepoint_to_glyph = hb_map_create(); plan->glyph_map = hb_map_create(); plan->reverse_glyph_map = hb_map_create(); - plan->glyphset = _populate_gids_to_retain (face, - input->unicodes, - !plan->drop_layout, - plan->unicodes, - plan->codepoint_to_glyph, - &plan->glyphs); + plan->_glyphset = _populate_gids_to_retain (face, + input->unicodes, + !plan->drop_layout, + plan->unicodes, + plan->codepoint_to_glyph, + &plan->glyphs_deprecated); _create_old_gid_to_new_gid_map (input->retain_gids, - plan->glyphs, + plan->glyphs_deprecated, plan->glyph_map, plan->reverse_glyph_map, &plan->_num_output_glyphs); @@ -237,13 +237,13 @@ hb_subset_plan_destroy (hb_subset_plan_t *plan) if (!hb_object_destroy (plan)) return; hb_set_destroy (plan->unicodes); - plan->glyphs.fini (); + plan->glyphs_deprecated.fini (); hb_face_destroy (plan->source); hb_face_destroy (plan->dest); hb_map_destroy (plan->codepoint_to_glyph); hb_map_destroy (plan->glyph_map); hb_map_destroy (plan->reverse_glyph_map); - hb_set_destroy (plan->glyphset); + hb_set_destroy (plan->_glyphset); free (plan); } diff --git a/src/hb-subset-plan.hh b/src/hb-subset-plan.hh index 07177ba55..32c19999d 100644 --- a/src/hb-subset-plan.hh +++ b/src/hb-subset-plan.hh @@ -60,7 +60,6 @@ struct hb_subset_plan_t hb_face_t *source; hb_face_t *dest; - private: unsigned int _num_output_glyphs; hb_set_t *_glyphset;