[iter] Use more
This commit is contained in:
parent
72c1b59588
commit
5b99c92d4c
|
@ -367,7 +367,7 @@ static const struct
|
|||
hb_enable_if (hb_is_iterable (A) && hb_is_iterable (B))>
|
||||
hb_zip_iter_t<hb_iter_t (A), hb_iter_t (B)>
|
||||
operator () (const A& a, const B &b) const
|
||||
{ return hb_zip_iter_t<hb_iter_t (A), hb_iter_t (B)> (a.iter (), b.iter ()); }
|
||||
{ return hb_zip_iter_t<hb_iter_t (A), hb_iter_t (B)> (hb_iter (a), hb_iter (b)); }
|
||||
} hb_zip HB_UNUSED;
|
||||
|
||||
/* hb_apply() */
|
||||
|
@ -451,7 +451,7 @@ template <typename C, typename V,
|
|||
inline void
|
||||
hb_fill (C& c, const V &v)
|
||||
{
|
||||
for (auto i = c.iter (); i; i++)
|
||||
for (auto i = hb_iter (c); i; i++)
|
||||
hb_assign (*i, v);
|
||||
}
|
||||
|
||||
|
|
|
@ -1572,9 +1572,8 @@ struct ContextFormat2
|
|||
&class_def
|
||||
};
|
||||
|
||||
unsigned int count = ruleSet.len;
|
||||
for (unsigned int i = 0; i < count; i++)
|
||||
(this+ruleSet[i]).collect_glyphs (c, lookup_context);
|
||||
for (auto it = hb_iter (ruleSet); it; ++it)
|
||||
(this+*it).collect_glyphs (c, lookup_context);
|
||||
}
|
||||
|
||||
bool would_apply (hb_would_apply_context_t *c) const
|
||||
|
@ -2219,9 +2218,8 @@ struct ChainContextFormat2
|
|||
&lookahead_class_def}
|
||||
};
|
||||
|
||||
unsigned int count = ruleSet.len;
|
||||
for (unsigned int i = 0; i < count; i++)
|
||||
(this+ruleSet[i]).collect_glyphs (c, lookup_context);
|
||||
for (auto it = hb_iter (ruleSet); it; ++it)
|
||||
(this+*it).collect_glyphs (c, lookup_context);
|
||||
}
|
||||
|
||||
bool would_apply (hb_would_apply_context_t *c) const
|
||||
|
|
Loading…
Reference in New Issue