From bca710e8ad2cccaa013e19a63c58899e45284df8 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 2 Jun 2022 12:06:25 -0600 Subject: [PATCH] [gsubgpos] Use map has() instead of get() when appropriate --- src/hb-ot-layout-gsubgpos.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-layout-gsubgpos.hh b/src/hb-ot-layout-gsubgpos.hh index 048278500..276a3601c 100644 --- a/src/hb-ot-layout-gsubgpos.hh +++ b/src/hb-ot-layout-gsubgpos.hh @@ -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 empty_set {hb_set_create ()}; if (unlikely (!done_lookups_glyph_set->set (lookup_index, empty_set)))