[gsubgpos] Use map has() instead of get() when appropriate

This commit is contained in:
Behdad Esfahbod 2022-06-02 12:06:25 -06:00
parent e9407a2bd2
commit bca710e8ad
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ struct hb_closure_context_t :
{
done_lookups_glyph_count->set (lookup_index, glyphs->get_population ());
if (!done_lookups_glyph_set->get (lookup_index))
if (!done_lookups_glyph_set->has (lookup_index))
{
hb::shared_ptr<hb_set_t> empty_set {hb_set_create ()};
if (unlikely (!done_lookups_glyph_set->set (lookup_index, empty_set)))