Differences From Artifact [1c69665b63]:
- File src/OFArray_adjacent.m — part of check-in [e0c9168dfc] at 2013-02-18 12:27:09 on branch trunk — Add -[OFMutableArray initWithCapacity:]. (user: js, size: 6734) [annotate] [blame] [check-ins using]
To Artifact [2158b59870]:
- File
src/OFArray_adjacent.m
— part of check-in
[2de15db195]
at
2013-03-01 21:19:02
on branch trunk
— Rethrow some exceptions to fix class.
This way, the error message will show the called class instead of the
class used internally. (user: js, size: 6970) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
213 214 215 216 217 218 219 | - (id*)objects { return [_array items]; } - (id)objectAtIndex: (size_t)index { | > | > > > > | > > > | 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 | - (id*)objects { return [_array items]; } - (id)objectAtIndex: (size_t)index { @try { return *((id*)[_array itemAtIndex: index]); } @catch (OFOutOfRangeException *e) { @throw [OFOutOfRangeException exceptionWithClass: [self class]]; } } - (id)objectAtIndexedSubscript: (size_t)index { @try { return *((id*)[_array itemAtIndex: index]); } @catch (OFOutOfRangeException *e) { @throw [OFOutOfRangeException exceptionWithClass: [self class]]; } } - (void)getObjects: (id*)buffer inRange: (of_range_t)range { id *objects = [_array items]; size_t i, count = [_array count]; |
︙ | ︙ |