@@ -90,12 +90,12 @@ default: \ @throw [OFInvalidFormatException exception]; \ } @interface OFNumber () -- (OFString*)OF_JSONRepresentationWithOptions: (int)options - depth: (size_t)depth; +- (OFString *)OF_JSONRepresentationWithOptions: (int)options + depth: (size_t)depth; @end @implementation OFNumber @synthesize type = _type; @@ -522,11 +522,11 @@ _type = OF_NUMBER_TYPE_DOUBLE; return self; } -- initWithSerialization: (OFXMLElement*)element +- initWithSerialization: (OFXMLElement *)element { self = [super init]; @try { void *pool = objc_autoreleasePoolPush(); @@ -763,11 +763,11 @@ OFNumber *number; if (![object isKindOfClass: [OFNumber class]]) @throw [OFInvalidArgumentException exception]; - number = (OFNumber*)object; + number = (OFNumber *)object; if (_type & OF_NUMBER_TYPE_FLOAT || number->_type & OF_NUMBER_TYPE_FLOAT) { double double1 = [self doubleValue]; double double2 = [number doubleValue]; @@ -867,11 +867,11 @@ - copy { return [self retain]; } -- (OFString*)description +- (OFString *)description { OFMutableString *ret; switch (_type) { case OF_NUMBER_TYPE_BOOL: @@ -924,11 +924,11 @@ default: @throw [OFInvalidFormatException exception]; } } -- (OFXMLElement*)XMLElementBySerializing +- (OFXMLElement *)XMLElementBySerializing { void *pool = objc_autoreleasePoolPush(); OFXMLElement *element; element = [OFXMLElement elementWithName: [self className] @@ -1008,24 +1008,24 @@ objc_autoreleasePoolPop(pool); return [element autorelease]; } -- (OFString*)JSONRepresentation +- (OFString *)JSONRepresentation { return [self OF_JSONRepresentationWithOptions: 0 depth: 0]; } -- (OFString*)JSONRepresentationWithOptions: (int)options +- (OFString *)JSONRepresentationWithOptions: (int)options { return [self OF_JSONRepresentationWithOptions: options depth: 0]; } -- (OFString*)OF_JSONRepresentationWithOptions: (int)options - depth: (size_t)depth +- (OFString *)OF_JSONRepresentationWithOptions: (int)options + depth: (size_t)depth { double doubleValue; if (_type == OF_NUMBER_TYPE_BOOL) return (_value.bool_ ? @"true" : @"false"); @@ -1042,11 +1042,11 @@ } return [self description]; } -- (OFDataArray*)messagePackRepresentation +- (OFDataArray *)messagePackRepresentation { OFDataArray *data; if (_type == OF_NUMBER_TYPE_BOOL) { uint8_t type;