@@ -34,11 +34,11 @@ + (instancetype)list { return [[[self alloc] init] autorelease]; } -- initWithSerialization: (OFXMLElement *)element +- (instancetype)initWithSerialization: (OFXMLElement *)element { self = [self init]; @try { void *pool = objc_autoreleasePoolPush(); @@ -266,11 +266,11 @@ } _firstListObject = _lastListObject = NULL; } -- copy +- (id)copy { OFList *copy = [[[self class] alloc] init]; of_list_object_t *listObject, *previous; listObject = NULL; @@ -402,12 +402,12 @@ mutationsPointer: &_mutations] autorelease]; } @end @implementation OFListEnumerator -- initWithList: (OFList *)list - mutationsPointer: (unsigned long *)mutationsPtr +- (instancetype)initWithList: (OFList *)list + mutationsPointer: (unsigned long *)mutationsPtr { self = [super init]; _list = [list retain]; _current = [list firstListObject];