[algs] Simplify stable_sort signatures
This commit is contained in:
parent
d119568df6
commit
9bb39423f5
|
@ -1153,8 +1153,8 @@ hb_qsort (void *base, size_t nel, size_t width,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
template <typename T, typename T2, typename T3> static inline void
|
template <typename T, typename T2, typename T3 = int> static inline void
|
||||||
hb_stable_sort (T *array, unsigned int len, int(*compar)(const T2 *, const T2 *), T3 *array2)
|
hb_stable_sort (T *array, unsigned int len, int(*compar)(const T2 *, const T2 *), T3 *array2 = nullptr)
|
||||||
{
|
{
|
||||||
for (unsigned int i = 1; i < len; i++)
|
for (unsigned int i = 1; i < len; i++)
|
||||||
{
|
{
|
||||||
|
@ -1178,12 +1178,6 @@ hb_stable_sort (T *array, unsigned int len, int(*compar)(const T2 *, const T2 *)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T> static inline void
|
|
||||||
hb_stable_sort (T *array, unsigned int len, int(*compar)(const T *, const T *))
|
|
||||||
{
|
|
||||||
hb_stable_sort (array, len, compar, (int *) nullptr);
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline hb_bool_t
|
static inline hb_bool_t
|
||||||
hb_codepoint_parse (const char *s, unsigned int len, int base, hb_codepoint_t *out)
|
hb_codepoint_parse (const char *s, unsigned int len, int base, hb_codepoint_t *out)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue