ObjFW  Check-in [dc8b06a5aa]

Overview
Comment:Add a note about usage of super to OFMutableCArray.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: dc8b06a5aae67097f20e81d665043f7696793bc0c1983055135e1138784e4ebf
User & Date: js on 2011-08-04 17:18:06
Other Links: manifest | tags
Context
2011-08-04
18:35
Fix a name conflict in OFHashAlreadyCalculatedException. check-in: a25f44b236 user: js tags: trunk
17:18
Add a note about usage of super to OFMutableCArray. check-in: dc8b06a5aa user: js tags: trunk
16:48
Get rid of -[*FromIndex:toIndex:]. check-in: f977192a23 user: js tags: trunk
Changes

Modified src/OFMutableCArray.m from [3855ae84ee] to [a724222ebd].

199
200
201
202
203
204
205
206
207





208
209
210
211
212
213
214
215
216
217
	[object release];

	mutations++;
}

- (int)countByEnumeratingWithState: (of_fast_enumeration_state_t*)state
			   objects: (id*)objects
			     count: (int)count_
{





	int ret = [super countByEnumeratingWithState: state
					     objects: objects
					       count: count_];

	state->mutationsPtr = &mutations;

	return ret;
}

- (OFEnumerator*)objectEnumerator







|

>
>
>
>
>


|







199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
	[object release];

	mutations++;
}

- (int)countByEnumeratingWithState: (of_fast_enumeration_state_t*)state
			   objects: (id*)objects
			     count: (int)count
{
	/*
	 * Super means the implementation from OFArray here, as OFMutableArray
	 * does not reimplement it. As OFCArray does not reimplement it either,
	 * this is fine.
	 */
	int ret = [super countByEnumeratingWithState: state
					     objects: objects
					       count: count];

	state->mutationsPtr = &mutations;

	return ret;
}

- (OFEnumerator*)objectEnumerator