[Coverage] Minor use range-based loop
This commit is contained in:
parent
b017b73ffe
commit
84d38df828
|
@ -154,9 +154,8 @@ struct CoverageFormat2_4
|
||||||
template <typename set_t>
|
template <typename set_t>
|
||||||
bool collect_coverage (set_t *glyphs) const
|
bool collect_coverage (set_t *glyphs) const
|
||||||
{
|
{
|
||||||
unsigned int count = rangeRecord.len;
|
for (const auto& range: rangeRecord)
|
||||||
for (unsigned int i = 0; i < count; i++)
|
if (unlikely (!range.collect_coverage (glyphs)))
|
||||||
if (unlikely (!rangeRecord[i].collect_coverage (glyphs)))
|
|
||||||
return false;
|
return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue