@@ -21,16 +21,16 @@ #import "OFXMLElement.h" #import "OFInvalidArgumentException.h" @implementation OFXMLCDATA -+ (instancetype)CDATAWithString: (OFString*)string ++ (instancetype)CDATAWithString: (OFString *)string { return [[[self alloc] initWithString: string] autorelease]; } -- initWithString: (OFString*)string +- initWithString: (OFString *)string { self = [super init]; @try { _CDATA = [string copy]; @@ -40,11 +40,11 @@ } return self; } -- initWithSerialization: (OFXMLElement*)element +- initWithSerialization: (OFXMLElement *)element { self = [super init]; @try { void *pool = objc_autoreleasePoolPush(); @@ -86,23 +86,23 @@ - (uint32_t)hash { return [_CDATA hash]; } -- (OFString*)stringValue +- (OFString *)stringValue { return [[_CDATA copy] autorelease]; } -- (void)setStringValue: (OFString*)stringValue +- (void)setStringValue: (OFString *)stringValue { OFString *old = _CDATA; _CDATA = [stringValue copy]; [old release]; } -- (OFString*)XMLString +- (OFString *)XMLString { void *pool = objc_autoreleasePoolPush(); OFString *tmp = [_CDATA stringByReplacingOccurrencesOfString: @"]]>" withString: @"]]>]]>