Differences From Artifact [08a16819c3]:
- File
src/OFCountedSet.m
— part of check-in
[4af49a13c3]
at
2017-05-07 20:10:13
on branch trunk
— Small code style change
Casts are now written like types in variable declarations. (user: js, size: 5299) [annotate] [blame] [check-ins using]
To Artifact [917f8ad622]:
- File src/OFCountedSet.m — part of check-in [8823a4df67] at 2017-08-19 08:24:40 on branch trunk — Add -[OFMutableSet removeAllObjects] (user: js, size: 5595) [annotate] [blame] [check-ins using]
︙ | |||
260 261 262 263 264 265 266 267 268 269 270 | 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 | + + + + + + + + + + + + + + + | for (size_t i = 0; i < count; i++) [self addObject: object]; } } else for (id object in set) [self addObject: object]; objc_autoreleasePoolPop(pool); } - (void)removeAllObjects { void *pool = objc_autoreleasePoolPush(); OFSet *copy = [[self copy] autorelease]; for (id object in copy) { size_t count = [self countForObject: object]; for (size_t i = 0; i < count; i++) [self removeObject: object]; } objc_autoreleasePoolPop(pool); } @end |