diff --git a/src/hb-ot-map.cc b/src/hb-ot-map.cc index d40c67af9..e4bb4b636 100644 --- a/src/hb-ot-map.cc +++ b/src/hb-ot-map.cc @@ -38,7 +38,7 @@ void hb_ot_map_t::collect_lookups (unsigned int table_index, hb_set_t *lookups_out) const { for (unsigned int i = 0; i < lookups[table_index].length; i++) - hb_set_add (lookups_out, lookups[table_index][i].index); + lookups_out->add (lookups[table_index][i].index); } diff --git a/src/hb-subset-cff-common.hh b/src/hb-subset-cff-common.hh index 7388f4fd4..3c6611960 100644 --- a/src/hb-subset-cff-common.hh +++ b/src/hb-subset-cff-common.hh @@ -916,7 +916,7 @@ struct subr_subsetter_t hb_set_t *closure, const subr_subset_param_t ¶m) { - hb_set_add (closure, subr_num); + closure->add (subr_num); collect_subr_refs_in_str (subrs[subr_num], param); } diff --git a/src/hb-subset-cff1.cc b/src/hb-subset-cff1.cc index 21bd97fbb..e9e075749 100644 --- a/src/hb-subset-cff1.cc +++ b/src/hb-subset-cff1.cc @@ -389,7 +389,7 @@ struct cff1_cs_opset_subr_subset_t : cff1_cs_opset_tadd_call_op (op, str_ref, env.context.subr_num); - hb_set_add (closure, env.context.subr_num); + closure->add (env.context.subr_num); param.set_current_str (env, true); } diff --git a/src/hb-subset-cff2.cc b/src/hb-subset-cff2.cc index 9bdd0ee7d..7edc3f515 100644 --- a/src/hb-subset-cff2.cc +++ b/src/hb-subset-cff2.cc @@ -219,7 +219,7 @@ struct cff2_cs_opset_subr_subset_t : cff2_cs_opset_tadd_call_op (op, str_ref, env.context.subr_num); - hb_set_add (closure, env.context.subr_num); + closure->add (env.context.subr_num); param.set_current_str (env, true); } diff --git a/src/hb-subset-plan.cc b/src/hb-subset-plan.cc index 9a52c55e2..147d7f076 100644 --- a/src/hb-subset-plan.cc +++ b/src/hb-subset-plan.cc @@ -43,7 +43,7 @@ _add_gid_and_children (const OT::glyf::accelerator_t &glyf, // Already visited this gid, ignore. return; - hb_set_add (gids_to_retain, gid); + gids_to_retain->add (gid); hb_bytes_t glyph_bytes = glyf.bytes_for_glyph (gid); const OT::glyf::GlyphHeader &glyph_header = *glyph_bytes.as (); @@ -54,14 +54,14 @@ _add_gid_and_children (const OT::glyf::accelerator_t &glyf, #ifndef HB_NO_SUBSET_CFF static inline void _add_cff_seac_components (const OT::cff1::accelerator_t &cff, - hb_codepoint_t gid, - hb_set_t *gids_to_retain) + hb_codepoint_t gid, + hb_set_t *gids_to_retain) { hb_codepoint_t base_gid, accent_gid; if (cff.get_seac_components (gid, &base_gid, &accent_gid)) { - hb_set_add (gids_to_retain, base_gid); - hb_set_add (gids_to_retain, accent_gid); + gids_to_retain->add (base_gid); + gids_to_retain->add (accent_gid); } } #endif