ObjFW  Check-in [9fd8b1301a]

Overview
Comment:OFMutableArray: Fix constness
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 9fd8b1301a91e650c146492ca1318f78ecf48e1a3a662f5c5dc8c86c0554d53d
User & Date: js on 2022-12-26 01:54:47
Other Links: manifest | tags
Context
2022-12-27
13:58
Rename OFAlready{Connected -> Open}Exception check-in: 29a41e5a78 user: js tags: trunk
2022-12-26
01:54
OFMutableArray: Fix constness check-in: 9fd8b1301a user: js tags: trunk
01:19
Fix shadowed variable and duplicate code check-in: c0fad4d24c user: js tags: trunk
Changes

Modified src/OFMutableArray.m from [5b457e1838] to [e05d916ce3].

373
374
375
376
377
378
379
380

381
382
383
384
385
386
387
		  options: (OFArraySortOptions)options
{
	size_t count = self.count;

	if (count == 0 || count == 1)
		return;

	quicksort(self, 0, count - 1, selectorCompare, selector, options);

}

- (void)sortUsingFunction: (OFCompareFunction)compare
		  context: (void *)context
		  options: (OFArraySortOptions)options
{
	size_t count = self.count;







|
>







373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
		  options: (OFArraySortOptions)options
{
	size_t count = self.count;

	if (count == 0 || count == 1)
		return;

	quicksort(self, 0, count - 1, selectorCompare, (void *)selector,
	    options);
}

- (void)sortUsingFunction: (OFCompareFunction)compare
		  context: (void *)context
		  options: (OFArraySortOptions)options
{
	size_t count = self.count;