ObjFW  Diff

Differences From Artifact [607056e622]:

To Artifact [b22706da67]:


394
395
396
397
398
399
400
401

402
403
404
405
406
407
408
394
395
396
397
398
399
400

401
402
403
404
405
406
407
408







-
+








- (void)setArray: (OFArray*)array
	  forKey: (OFString*)key
{
	void *pool;
	OFMutableArray *pairs;
	id const *lines;
	size_t i, count;
	size_t count;
	bool replaced;

	if ([array count] == 0) {
		[self removeValueForKey: key];
		return;
	}

423
424
425
426
427
428
429
430

431
432
433
434
435
436
437
423
424
425
426
427
428
429

430
431
432
433
434
435
436
437







-
+







		[pairs addObject: pair];
	}

	lines = [_lines objects];
	count = [_lines count];
	replaced = false;

	for (i = 0; i < count; i++) {
	for (size_t i = 0; i < count; i++) {
		OFINICategory_Pair *pair;

		if (![lines[i] isKindOfClass: [OFINICategory_Pair class]])
			continue;

		pair = lines[i];

461
462
463
464
465
466
467
468

469
470

471
472
473
474
475
476
477
461
462
463
464
465
466
467

468
469

470
471
472
473
474
475
476
477







-
+

-
+







	objc_autoreleasePoolPop(pool);
}

- (void)removeValueForKey: (OFString*)key
{
	void *pool = objc_autoreleasePoolPush();
	id const *lines = [_lines objects];
	size_t i, count = [_lines count];
	size_t count = [_lines count];

	for (i = 0; i < count; i++) {
	for (size_t i = 0; i < count; i++) {
		OFINICategory_Pair *pair;

		if (![lines[i] isKindOfClass: [OFINICategory_Pair class]])
			continue;

		pair = lines[i];