Differences From Artifact [20c7045513]:
- File src/OFArray.m — part of check-in [cb0fd980f9] at 2016-01-03 01:14:27 on branch trunk — Make more use of fast enumeration (user: js, size: 16960) [annotate] [blame] [check-ins using]
To Artifact [a01924feba]:
- File
src/OFArray.m
— part of check-in
[8a14ad35aa]
at
2016-02-21 11:59:44
on branch trunk
— OFArray: Fix bug introduced by refactorization
Also improves the test to prevent this from happening again. (user: js, size: 17011) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
418 419 420 421 422 423 424 425 426 427 | [ret appendString: separator]; [ret appendString: component]; } objc_autoreleasePoolPop(pool); } } else { for (id object in self) { void *pool = objc_autoreleasePoolPush(); | > > | > > > | 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 | [ret appendString: separator]; [ret appendString: component]; } objc_autoreleasePoolPop(pool); } } else { bool first = true; for (id object in self) { void *pool = objc_autoreleasePoolPush(); if OF_UNLIKELY (first) first = false; else [ret appendString: separator]; [ret appendString: [object performSelector: selector]]; objc_autoreleasePoolPop(pool); } } [ret makeImmutable]; |
︙ | ︙ |