@@ -20,11 +20,11 @@ #import "OFString.h" @implementation OFMemoryNotPartOfObjectException @synthesize pointer = _pointer, object = _object; -+ (instancetype)exceptionWithPointer: (void*)pointer ++ (instancetype)exceptionWithPointer: (void *)pointer object: (id)object { return [[[self alloc] initWithPointer: pointer object: object] autorelease]; } @@ -32,11 +32,11 @@ - init { OF_INVALID_INIT_METHOD } -- initWithPointer: (void*)pointer +- initWithPointer: (void *)pointer object: (id)object { self = [super init]; _pointer = pointer; @@ -50,14 +50,14 @@ [_object release]; [super dealloc]; } -- (OFString*)description +- (OFString *)description { return [OFString stringWithFormat: @"Deallocation or reallocation of memory not allocated as part of " @"object of type %@ was attempted! It is also possible that there " @"was an attempt to free the same memory twice.", [_object class]]; } @end