diff --git a/src/hb-vector.hh b/src/hb-vector.hh index 766e5fb8e..38d08cb77 100644 --- a/src/hb-vector.hh +++ b/src/hb-vector.hh @@ -179,16 +179,11 @@ struct hb_vector_t return nullptr; } - inline void qsort (int (*cmp)(const void*, const void*)) + inline void qsort (int (*cmp)(const void*, const void*) = Type::cmp) { ::qsort (arrayZ(), len, sizeof (Type), cmp); } - inline void qsort (void) - { - ::qsort (arrayZ(), len, sizeof (Type), Type::cmp); - } - inline void qsort (unsigned int start, unsigned int end) { ::qsort (arrayZ() + start, end - start, sizeof (Type), Type::cmp);