[ms-feature-ranges] Use preferred vector search API

This commit is contained in:
Behdad Esfahbod 2022-01-19 11:06:33 -07:00
parent 7e160dc347
commit 849e40b4db
2 changed files with 3 additions and 3 deletions

View File

@ -114,7 +114,7 @@ hb_ms_setup_features (const hb_feature_t *features,
}
else
{
auto *feature = active_features.find (&event->feature);
auto *feature = active_features.lsearch (event->feature);
if (feature)
active_features.remove (feature - active_features.arrayZ);
}

View File

@ -52,8 +52,8 @@ struct hb_ms_active_feature_t {
a->fea.value < b->fea.value ? -1 : a->fea.value > b->fea.value ? 1 :
0;
}
bool operator== (const hb_ms_active_feature_t *f)
{ return cmp (this, f) == 0; }
bool operator== (const hb_ms_active_feature_t f) const
{ return cmp (this, &f) == 0; }
};
struct hb_ms_feature_event_t {