[Coverage] Minor use range-based loop

This commit is contained in:
Behdad Esfahbod 2022-07-21 12:12:04 -06:00
parent b017b73ffe
commit 84d38df828
1 changed files with 2 additions and 3 deletions

View File

@ -154,9 +154,8 @@ struct CoverageFormat2_4
template <typename set_t>
bool collect_coverage (set_t *glyphs) const
{
unsigned int count = rangeRecord.len;
for (unsigned int i = 0; i < count; i++)
if (unlikely (!rangeRecord[i].collect_coverage (glyphs)))
for (const auto& range: rangeRecord)
if (unlikely (!range.collect_coverage (glyphs)))
return false;
return true;
}