[ClassDef] Write a loop as range for
This commit is contained in:
parent
0cc2f3c218
commit
7cdde6a241
|
@ -1810,11 +1810,8 @@ struct ClassDefFormat2_4
|
||||||
return true;
|
return true;
|
||||||
/* Fall through. */
|
/* Fall through. */
|
||||||
}
|
}
|
||||||
/* TODO Speed up, using set overlap first? */
|
for (const auto &range : rangeRecord)
|
||||||
/* TODO(iter) Rewrite as dagger. */
|
if (range.value == klass && range.intersects (*glyphs))
|
||||||
const auto *arr = rangeRecord.arrayZ;
|
|
||||||
for (unsigned int i = 0; i < count; i++)
|
|
||||||
if (arr[i].value == klass && arr[i].intersects (*glyphs))
|
|
||||||
return true;
|
return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue