[ms-feature-ranges] Use preferred vector search API
This commit is contained in:
parent
7e160dc347
commit
849e40b4db
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue