Differences From Artifact [63b8a9aaca]:
- File
src/OFMutableDictionary.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: 3970) [annotate] [blame] [check-ins using]
To Artifact [d718ec6322]:
- File src/OFMutableDictionary.m — part of check-in [88a584a16f] at 2017-05-25 15:09:45 on branch trunk — -[OFMutableDictionary addEntiresFromDictionary:] (user: js, size: 4404) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
189 190 191 192 193 194 195 196 197 198 199 200 201 202 | objc_autoreleasePoolPop(pool); } - copy { return [[OFDictionary alloc] initWithDictionary: self]; } #ifdef OF_HAVE_BLOCKS - (void)replaceObjectsUsingBlock: (of_dictionary_replace_block_t)block { [self enumerateKeysAndObjectsUsingBlock: ^ (id key, id object, bool *stop) { id new = block(key, object); | > > > > > > > > > > > > > > > | 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 | objc_autoreleasePoolPop(pool); } - copy { return [[OFDictionary alloc] initWithDictionary: self]; } - (void)addEntriesFromDictionary: (OFDictionary *)dictionary { void *pool = objc_autoreleasePoolPush(); OFEnumerator *keyEnumerator = [dictionary keyEnumerator]; OFEnumerator *objectEnumerator = [dictionary objectEnumerator]; id key, object; while ((key = [keyEnumerator nextObject]) != nil && (object = [objectEnumerator nextObject]) != nil) [self setObject: object forKey: key]; objc_autoreleasePoolPop(pool); } #ifdef OF_HAVE_BLOCKS - (void)replaceObjectsUsingBlock: (of_dictionary_replace_block_t)block { [self enumerateKeysAndObjectsUsingBlock: ^ (id key, id object, bool *stop) { id new = block(key, object); |
︙ | ︙ |