mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-22 15:31:05 +01:00
[iter] Use in a couple more closure() calls
This commit is contained in:
1 parent
fa35d3fd81
commit
bafdf1829d
1 file changed
+4
-6
@@ -1374,9 +1374,8 @@ struct RuleSet
|
||||
void closure (hb_closure_context_t *c,
|
||||
ContextClosureLookupContext &lookup_context) const
|
||||
{
|
||||
unsigned int num_rules = rule.len;
|
||||
for (unsigned int i = 0; i < num_rules; i++)
|
||||
(this+rule[i]).closure (c, lookup_context);
|
||||
for (auto it = hb_iter (rule); it; ++it)
|
||||
(this+*it).closure (c, lookup_context);
|
||||
}
|
||||
|
||||
void collect_glyphs (hb_collect_glyphs_context_t *c,
|
||||
@@ -2023,9 +2022,8 @@ struct ChainRuleSet
|
||||
}
|
||||
void closure (hb_closure_context_t *c, ChainContextClosureLookupContext &lookup_context) const
|
||||
{
|
||||
unsigned int num_rules = rule.len;
|
||||
for (unsigned int i = 0; i < num_rules; i++)
|
||||
(this+rule[i]).closure (c, lookup_context);
|
||||
for (auto it = hb_iter (rule); it; ++it)
|
||||
(this+*it).closure (c, lookup_context);
|
||||
}
|
||||
|
||||
void collect_glyphs (hb_collect_glyphs_context_t *c, ChainContextCollectGlyphsLookupContext &lookup_context) const
|
||||
|
||||
Reference in new issue
Block a user