Index: src/OFArray.m ================================================================== --- src/OFArray.m +++ src/OFArray.m @@ -665,11 +665,11 @@ @end @implementation OFArrayEnumerator - initWithArray: (OFArray*)array_ dataArray: (OFDataArray*)dataArray_ - mutationsPointer: (unsigned long*)mutationsPtr_; + mutationsPointer: (unsigned long*)mutationsPtr_ { self = [super init]; array = [array_ retain]; dataArray = [dataArray_ retain]; Index: src/OFConstantString.m ================================================================== --- src/OFConstantString.m +++ src/OFConstantString.m @@ -52,11 +52,11 @@ @throw [OFNotImplementedException newWithClass: isa selector: _cmd]; } - initWithCString: (const char*)str - encoding: (of_string_encoding_t)encoding; + encoding: (of_string_encoding_t)encoding { @throw [OFNotImplementedException newWithClass: isa selector: _cmd]; } Index: src/OFDictionary.m ================================================================== --- src/OFDictionary.m +++ src/OFDictionary.m @@ -34,11 +34,11 @@ struct of_dictionary_bucket of_dictionary_deleted_bucket = {}; #define DELETED &of_dictionary_deleted_bucket @implementation OFDictionary -+ dictionary; ++ dictionary { return [[[self alloc] init] autorelease]; } + dictionaryWithDictionary: (OFDictionary*)dictionary Index: src/OFList.m ================================================================== --- src/OFList.m +++ src/OFList.m @@ -82,16 +82,16 @@ [iter->object release]; [super dealloc]; } -- (of_list_object_t*)firstListObject; +- (of_list_object_t*)firstListObject { return firstListObject; } -- (of_list_object_t*)lastListObject; +- (of_list_object_t*)lastListObject { return lastListObject; } - (of_list_object_t*)appendObject: (id)object @@ -418,11 +418,11 @@ } @end @implementation OFListEnumerator - initWithList: (OFList*)list_ - mutationsPointer: (unsigned long*)mutationsPtr_; + mutationsPointer: (unsigned long*)mutationsPtr_ { self = [super init]; list = [list_ retain]; current = [list firstListObject]; Index: src/OFObject.m ================================================================== --- src/OFObject.m +++ src/OFObject.m @@ -375,11 +375,11 @@ method_getTypeEncoding(method)); #endif } + (IMP)replaceClassMethod: (SEL)selector - withMethodFromClass: (Class)class; + withMethodFromClass: (Class)class { IMP newImp; if (![class isSubclassOfClass: self]) @throw [OFInvalidArgumentException newWithClass: self @@ -433,11 +433,11 @@ method_getTypeEncoding(method)); #endif } + (IMP)replaceInstanceMethod: (SEL)selector - withMethodFromClass: (Class)class; + withMethodFromClass: (Class)class { IMP newImp; if (![class isSubclassOfClass: self]) @throw [OFInvalidArgumentException newWithClass: self @@ -692,11 +692,11 @@ return [self resizeMemory: pointer toSize: nItems * size]; } -- (void)freeMemory: (void*)pointer; +- (void)freeMemory: (void*)pointer { void **iter, *last, **memoryChunks; size_t i, memoryChunksSize; if (pointer == NULL) Index: src/OFString.m ================================================================== --- src/OFString.m +++ src/OFString.m @@ -1175,11 +1175,11 @@ return OF_ORDERED_DESCENDING; else return OF_ORDERED_ASCENDING; } -- (of_comparison_result_t)caseInsensitiveCompare: (OFString*)otherString; +- (of_comparison_result_t)caseInsensitiveCompare: (OFString*)otherString { const char *otherCString; size_t i, j, otherLen, minLen; int cmp; @@ -1655,11 +1655,11 @@ return [OFString stringWithCString: string + i length: pathLen - i]; } -- (OFString*)stringByDeletingLastPathComponent; +- (OFString*)stringByDeletingLastPathComponent { size_t i, pathLen = length; if (pathLen == 0) return @""; Index: src/exceptions/OFCopyFileFailedException.m ================================================================== --- src/exceptions/OFCopyFileFailedException.m +++ src/exceptions/OFCopyFileFailedException.m @@ -87,10 +87,10 @@ - (OFString*)sourcePath { return sourcePath; } -- (OFString*)destinationPath; +- (OFString*)destinationPath { return destinationPath; } @end Index: src/exceptions/OFRenameFileFailedException.m ================================================================== --- src/exceptions/OFRenameFileFailedException.m +++ src/exceptions/OFRenameFileFailedException.m @@ -87,10 +87,10 @@ - (OFString*)sourcePath { return sourcePath; } -- (OFString*)destinationPath; +- (OFString*)destinationPath { return destinationPath; } @end