[map] Minor use hb_iter instead of hb_array

This commit is contained in:
Behdad Esfahbod 2022-11-17 15:01:55 -07:00
parent 238fc14716
commit 7bd101728a
1 changed files with 3 additions and 4 deletions

View File

@ -234,8 +234,7 @@ struct hb_hashmap_t
{ {
if (unlikely (!successful)) return; if (unlikely (!successful)) return;
if (items) for (auto &_ : hb_iter (items, mask ? mask + 1 : 0))
for (auto &_ : hb_iter (items, mask + 1))
_.clear (); _.clear ();
population = occupancy = 0; population = occupancy = 0;
@ -273,7 +272,7 @@ struct hb_hashmap_t
auto iter_items () const HB_AUTO_RETURN auto iter_items () const HB_AUTO_RETURN
( (
+ hb_array (items, mask ? mask + 1 : 0) + hb_iter (items, mask ? mask + 1 : 0)
| hb_filter (&item_t::is_real) | hb_filter (&item_t::is_real)
) )
auto iter_ref () const HB_AUTO_RETURN auto iter_ref () const HB_AUTO_RETURN