[arrays] Port ArrayOf.qsort() to hb_array_t's

This commit is contained in:
Behdad Esfahbod 2018-11-24 01:48:48 -05:00
parent ad5c871d80
commit 073d837aa2
1 changed files with 1 additions and 3 deletions

View File

@ -578,9 +578,7 @@ struct ArrayOf
{ return *as_array ().lsearch (x, &Null (T)); } { return *as_array ().lsearch (x, &Null (T)); }
inline void qsort (void) inline void qsort (void)
{ { as_array ().qsort (); }
::qsort (arrayZ, len, sizeof (Type), Type::cmp);
}
inline bool sanitize_shallow (hb_sanitize_context_t *c) const inline bool sanitize_shallow (hb_sanitize_context_t *c) const
{ {