Remove a couple of unneeded .iter() invocations

This commit is contained in:
Behdad Esfahbod 2022-11-29 15:26:55 -07:00
parent 00f2657bb8
commit dc82334061
1 changed files with 2 additions and 2 deletions

View File

@ -1497,7 +1497,7 @@ static bool ClassDef_remap_and_serialize (hb_serialize_context_t *c,
klass_map->set (0, 0); klass_map->set (0, 0);
unsigned idx = klass_map->has (0) ? 1 : 0; unsigned idx = klass_map->has (0) ? 1 : 0;
for (const unsigned k: klasses.iter ()) for (const unsigned k: klasses)
{ {
if (klass_map->has (k)) continue; if (klass_map->has (k)) continue;
klass_map->set (k, idx); klass_map->set (k, idx);
@ -1982,7 +1982,7 @@ struct ClassDefFormat2_4
if (g != HB_SET_VALUE_INVALID && glyphs->next (&g)) if (g != HB_SET_VALUE_INVALID && glyphs->next (&g))
intersect_classes->add (0); intersect_classes->add (0);
for (const auto& record : rangeRecord.iter ()) for (const auto& record : rangeRecord)
if (record.intersects (*glyphs)) if (record.intersects (*glyphs))
intersect_classes->add (record.value); intersect_classes->add (record.value);
} }