Differences From Artifact [53f13e2987]:
- File
src/OFMutableArray.m
— part of check-in
[c5ef582958]
at
2013-03-04 17:20:15
on branch trunk
— Replace BOOL with bool.
The only places where BOOL is left are those where they are required by
the ABI. (user: js, size: 8082) [annotate] [blame] [check-ins using]
To Artifact [f511e7126a]:
- File
src/OFMutableArray.m
— part of check-in
[e8473b9db8]
at
2013-03-08 22:44:07
on branch trunk
— Document the block types.
This also removes "bool *stop" from some blocks where it does not make
sense. (user: js, size: 8116) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
372 373 374 375 376 377 378 | } #ifdef OF_HAVE_BLOCKS - (void)replaceObjectsUsingBlock: (of_array_replace_block_t)block { [self enumerateObjectsUsingBlock: ^ (id object, size_t index, bool *stop) { | > > > | | | 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 | } #ifdef OF_HAVE_BLOCKS - (void)replaceObjectsUsingBlock: (of_array_replace_block_t)block { [self enumerateObjectsUsingBlock: ^ (id object, size_t index, bool *stop) { id new = block(object, index); if (new != object) [self replaceObjectAtIndex: index withObject: new]; }]; } #endif - (void)exchangeObjectAtIndex: (size_t)index1 withObjectAtIndex: (size_t)index2 { |
︙ | ︙ |