[glyf] Use a range for loop

This commit is contained in:
Behdad Esfahbod 2022-06-25 16:51:33 -06:00
parent e4f2bc9342
commit ba1c9eda38
1 changed files with 2 additions and 6 deletions

View File

@ -466,13 +466,9 @@ struct glyf_accelerator_t
gids_to_retain->add (gid);
auto it = glyph_for_gid (gid).get_composite_iterator ();
while (it)
{
auto item = *(it++);
for (auto item : glyph_for_gid (gid).get_composite_iterator ())
operation_count =
add_gid_and_children (item.get_glyph_index (), gids_to_retain, depth, operation_count);
}
add_gid_and_children (item.get_glyph_index (), gids_to_retain, depth, operation_count);
return operation_count;
}