From a3bb7cbe649d9c718b65aded4c6b2445ff5d20d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Wed, 21 Oct 2020 21:26:09 +0200 Subject: Hold only a const version of Settings in ProcessList --- Vector.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Vector.c') diff --git a/Vector.c b/Vector.c index 1dfccc44..4ed0d53d 100644 --- a/Vector.c +++ b/Vector.c @@ -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)); } -- cgit v1.2.3