mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
Hold only a const version of Settings in ProcessList
This commit is contained in:

committed by
cgzones

parent
4eb443926f
commit
a3bb7cbe64
6
Vector.c
6
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));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user