diff --git a/src/OT/glyf/glyf.hh b/src/OT/glyf/glyf.hh index 7b487ae00..ab5d56b26 100644 --- a/src/OT/glyf/glyf.hh +++ b/src/OT/glyf/glyf.hh @@ -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; }