Differences From Artifact [112af5c677]:
- File src/OFMutableSet.m — part of check-in [89d53f2a9a] at 2012-03-29 07:57:34 on branch trunk — Add a few "const" where they make sense. (user: js, size: 3920) [annotate] [blame] [check-ins using] [more...]
To Artifact [f111a1faac]:
- File
src/OFMutableSet.m
— part of check-in
[f7576a66ce]
at
2012-06-06 13:47:52
on branch trunk
— Slightly change the memory management API.
Also fix a bug where OFBigDataArray would waste memory. (user: js, size: 3919) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
155 156 157 158 159 160 161 | - (void)intersectSet: (OFSet*)set { OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; size_t count = [self count]; id *cArray; | | | | 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 | - (void)intersectSet: (OFSet*)set { OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; size_t count = [self count]; id *cArray; cArray = [self allocMemoryWithItemSize: sizeof(id) count: count]; @try { OFEnumerator *enumerator = [self objectEnumerator]; id object; size_t i = 0; while ((object = [enumerator nextObject]) != nil) { |
︙ | ︙ |