[GSUB] Use dagger in Ligature::intersects()

This commit is contained in:
Behdad Esfahbod 2019-08-28 15:09:58 -07:00
parent b8c642c1f5
commit 5c43a7ba7e
1 changed files with 1 additions and 7 deletions

View File

@ -661,13 +661,7 @@ struct AlternateSubst
struct Ligature struct Ligature
{ {
bool intersects (const hb_set_t *glyphs) const bool intersects (const hb_set_t *glyphs) const
{ { return hb_all (hb_iter (component), glyphs); }
unsigned int count = component.lenP1;
for (unsigned int i = 1; i < count; i++)
if (!glyphs->has (component[i]))
return false;
return true;
}
void closure (hb_closure_context_t *c) const void closure (hb_closure_context_t *c) const
{ {