Index: src/OFArray.h ================================================================== --- src/OFArray.h +++ src/OFArray.h @@ -393,15 +393,15 @@ #endif @end @interface OFArrayEnumerator: OFEnumerator { - OFArray *array; - size_t count; - unsigned long mutations; - unsigned long *mutationsPtr; - size_t position; + OFArray *_array; + size_t _count; + unsigned long _mutations; + unsigned long *_mutationsPtr; + size_t _position; } - initWithArray: (OFArray*)data mutationsPtr: (unsigned long*)mutationsPtr; @end Index: src/OFArray.m ================================================================== --- src/OFArray.m +++ src/OFArray.m @@ -827,46 +827,46 @@ } #endif @end @implementation OFArrayEnumerator -- initWithArray: (OFArray*)array_ - mutationsPtr: (unsigned long*)mutationsPtr_ +- initWithArray: (OFArray*)array + mutationsPtr: (unsigned long*)mutationsPtr { self = [super init]; - array = [array_ retain]; - count = [array count]; - mutations = (mutationsPtr_ != NULL ? *mutationsPtr_ : 0); - mutationsPtr = mutationsPtr_; + _array = [array retain]; + _count = [array count]; + _mutations = (mutationsPtr != NULL ? *mutationsPtr : 0); + _mutationsPtr = mutationsPtr; return self; } - (void)dealloc { - [array release]; + [_array release]; [super dealloc]; } - (id)nextObject { - if (mutationsPtr != NULL && *mutationsPtr != mutations) + if (_mutationsPtr != NULL && *_mutationsPtr != _mutations) @throw [OFEnumerationMutationException - exceptionWithObject: array]; + exceptionWithObject: _array]; - if (position < count) - return [array objectAtIndex: position++]; + if (_position < _count) + return [_array objectAtIndex: _position++]; return nil; } - (void)reset { - if (mutationsPtr != NULL && *mutationsPtr != mutations) + if (_mutationsPtr != NULL && *_mutationsPtr != _mutations) @throw [OFEnumerationMutationException - exceptionWithObject: array]; + exceptionWithObject: _array]; - position = 0; + _position = 0; } @end