[arrays] Remove one flavor of hb_vector_t.qsort()
This commit is contained in:
parent
7c1600dcd9
commit
e3face8e79
|
@ -225,13 +225,9 @@ struct hb_vector_t
|
||||||
::qsort (arrayZ(), len, sizeof (Type), cmp);
|
::qsort (arrayZ(), len, sizeof (Type), cmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void qsort (void)
|
inline void qsort (unsigned int start = 0, unsigned int end = (unsigned int) -1)
|
||||||
{
|
|
||||||
::qsort (arrayZ(), len, sizeof (Type), Type::cmp);
|
|
||||||
}
|
|
||||||
|
|
||||||
inline void qsort (unsigned int start, unsigned int end)
|
|
||||||
{
|
{
|
||||||
|
end = MIN (end, len);
|
||||||
::qsort (arrayZ() + start, end - start, sizeof (Type), Type::cmp);
|
::qsort (arrayZ() + start, end - start, sizeof (Type), Type::cmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue