Differences From Artifact [607056e622]:
- File
src/OFINICategory.m
— part of check-in
[2a27cf3000]
at
2016-01-03 00:41:26
on branch trunk
— Update copyright
While at it, also update the mail address. (user: js, size: 10811) [annotate] [blame] [check-ins using]
To Artifact [b22706da67]:
- File src/OFINICategory.m — part of check-in [e0b9167693] at 2016-02-21 15:37:42 on branch trunk — Make use of C99-style for loops (user: js, size: 10819) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
394 395 396 397 398 399 400 | - (void)setArray: (OFArray*)array forKey: (OFString*)key { void *pool; OFMutableArray *pairs; id const *lines; | | | 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 count; bool replaced; if ([array count] == 0) { [self removeValueForKey: key]; return; } |
︙ | ︙ | |||
423 424 425 426 427 428 429 | [pairs addObject: pair]; } lines = [_lines objects]; count = [_lines count]; replaced = false; | | | 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 (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 | objc_autoreleasePoolPop(pool); } - (void)removeValueForKey: (OFString*)key { void *pool = objc_autoreleasePoolPush(); id const *lines = [_lines objects]; | | | | 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 count = [_lines count]; for (size_t i = 0; i < count; i++) { OFINICategory_Pair *pair; if (![lines[i] isKindOfClass: [OFINICategory_Pair class]]) continue; pair = lines[i]; |
︙ | ︙ |