mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-28 17:19:17 +01:00
[glyf] Use a range for loop
This commit is contained in:
1 parent
e4f2bc9342
commit
ba1c9eda38
1 file changed
+2
-6
+2
-6
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user