Hold only a const version of Settings in ProcessList

This commit is contained in:
Christian Göttsche
2020-10-21 21:26:09 +02:00
committed by cgzones
parent 4eb443926f
commit a3bb7cbe64
8 changed files with 22 additions and 18 deletions

View File

@ -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));
}