diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-10-21 21:26:09 +0200 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2020-10-26 19:30:38 +0100 |
commit | a3bb7cbe649d9c718b65aded4c6b2445ff5d20d5 (patch) | |
tree | 0777ed5bf2fe322227fe114cd1126ab77bc8ccf1 /Vector.c | |
parent | 4eb443926f9944f4c100b1aabfb5553cbbd98874 (diff) |
Hold only a const version of Settings in ProcessList
Diffstat (limited to 'Vector.c')
-rw-r--r-- | Vector.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -161,10 +161,10 @@ static void insertionSort(Object** array, int left, int right, Object_Compare co } } -void Vector_quickSort(Vector* this) { - assert(this->type->compare); +void Vector_quickSortCustomCompare(Vector* this, Object_Compare compare) { + assert(compare); assert(Vector_isConsistent(this)); - quickSort(this->array, 0, this->items - 1, this->type->compare); + quickSort(this->array, 0, this->items - 1, compare); assert(Vector_isConsistent(this)); } |