Index: src/OFAutoreleasePool.m ================================================================== --- src/OFAutoreleasePool.m +++ src/OFAutoreleasePool.m @@ -34,15 +34,13 @@ [(OFList*)list release]; } @implementation OFAutoreleasePool -+ initialize ++ (void)initialize { pool_list_key = [[OFTLSKey alloc] initWithDestructor: release_list]; - - return self; } + (void)addToPool: (OFObject*)obj { OFList *pool_list; Index: src/OFObject.h ================================================================== --- src/OFObject.h +++ src/OFObject.h @@ -29,11 +29,11 @@ * This code is executed once when a method of the class is called for the first * time. * Derived classes can override this to execute their own code on * initialization. */ -+ initialize; ++ (void)initialize; /** * Allocates memory for an instance of the class. * * alloc will never return nil, instead, it will throw an Index: src/OFObject.m ================================================================== --- src/OFObject.m +++ src/OFObject.m @@ -39,13 +39,12 @@ static struct { Class isa; } alloc_failed_exception; @implementation OFObject -+ initialize ++ (void)initialize { - return self; } + alloc { OFObject *instance; Index: src/OFSocket.m ================================================================== --- src/OFSocket.m +++ src/OFSocket.m @@ -21,18 +21,16 @@ #define INVALID_SOCKET -1 #endif @implementation OFSocket #ifdef _WIN32 -+ initialize ++ (void)initialize { WSADATA wsa; if (WSAStartup(MAKEWORD(2, 0), &wsa)) @throw [OFInitializationFailedException newWithClass: self]; - - return self; } #endif - init {