@@ -23,16 +23,16 @@ #import "OFXMLElement.h" #import "OFInvalidArgumentException.h" @implementation OFXMLComment -+ (instancetype)commentWithString: (OFString*)string ++ (instancetype)commentWithString: (OFString *)string { return [[[self alloc] initWithString: string] autorelease]; } -- initWithString: (OFString*)string +- initWithString: (OFString *)string { self = [super init]; @try { _comment = [string copy]; @@ -42,11 +42,11 @@ } return self; } -- initWithSerialization: (OFXMLElement*)element +- initWithSerialization: (OFXMLElement *)element { self = [super init]; @try { void *pool = objc_autoreleasePoolPush(); @@ -88,27 +88,27 @@ - (uint32_t)hash { return [_comment hash]; } -- (OFString*)stringValue +- (OFString *)stringValue { return @""; } -- (OFString*)XMLString +- (OFString *)XMLString { return [OFString stringWithFormat: @"", _comment]; } -- (OFString*)XMLStringWithIndentation: (unsigned int)indentation +- (OFString *)XMLStringWithIndentation: (unsigned int)indentation { return [OFString stringWithFormat: @"", _comment]; } -- (OFString*)XMLStringWithIndentation: (unsigned int)indentation - level: (unsigned int)level +- (OFString *)XMLStringWithIndentation: (unsigned int)indentation + level: (unsigned int)level { OFString *ret; if (indentation > 0 && level > 0) { char *whitespaces = [self allocMemoryWithSize: @@ -127,17 +127,17 @@ ret = [OFString stringWithFormat: @"", _comment]; return ret; } -- (OFString*)description +- (OFString *)description { return [OFString stringWithFormat: @"", _comment]; } -- (OFXMLElement*)XMLElementBySerializing +- (OFXMLElement *)XMLElementBySerializing { return [OFXMLElement elementWithName: [self className] namespace: OF_SERIALIZATION_NS stringValue: _comment]; } @end