Overview
Comment: | Remove code duplication for fast enumeration of mutable collections. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
63fc941b66aa37300f0727baa4e7588c |
User & Date: | js on 2011-07-20 18:23:41 |
Other Links: | manifest | tags |
Context
2011-07-21
| ||
19:03 | Add -[allKeys] and -[allObjects] to OFDictionary. check-in: cc87fcff36 user: js tags: trunk | |
2011-07-20
| ||
18:23 | Remove code duplication for fast enumeration of mutable collections. check-in: 63fc941b66 user: js tags: trunk | |
16:50 | Check for mutations during fast enumeration in OFMutableSet. check-in: dbd145b124 user: js tags: trunk | |
Changes
Modified src/OFMutableArray.m from [9e095a5f89] to [4897ca4a74].
︙ | |||
200 201 202 203 204 205 206 | 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 | - - + - - - - + + - - - - + | mutations++; } - (int)countByEnumeratingWithState: (of_fast_enumeration_state_t*)state objects: (id*)objects count: (int)count_ { |
︙ |
Modified src/OFMutableDictionary.m from [77b424abe9] to [7bf06a0039].
︙ | |||
244 245 246 247 248 249 250 | 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 | - - + + - - - - + - - - - - - + - - - + | return [[OFDictionary alloc] initWithDictionary: self]; } - (int)countByEnumeratingWithState: (of_fast_enumeration_state_t*)state objects: (id*)objects count: (int)count_ { |
︙ |
Modified src/OFMutableSet.m from [44aa66377a] to [4ebb225162].
︙ | |||
40 41 42 43 44 45 46 | 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - + | mutations++; } - (int)countByEnumeratingWithState: (of_fast_enumeration_state_t*)state objects: (id*)objects count: (int)count { |