@@ -51,15 +51,15 @@ self = [super of_init]; @try { void *pool = objc_autoreleasePoolPush(); - if (![[element name] isEqual: [self className]] || - ![[element namespace] isEqual: OF_SERIALIZATION_NS]) + if (![element.name isEqual: self.className] || + ![element.namespace isEqual: OF_SERIALIZATION_NS]) @throw [OFInvalidArgumentException exception]; - _processingInstructions = [[element stringValue] copy]; + _processingInstructions = [element.stringValue copy]; objc_autoreleasePoolPop(pool); } @catch (id e) { [self release]; @throw e; @@ -91,11 +91,11 @@ isEqual: _processingInstructions]); } - (uint32_t)hash { - return [_processingInstructions hash]; + return _processingInstructions.hash; } - (OFString *)stringValue { return @""; @@ -140,10 +140,10 @@ return [OFString stringWithFormat: @"", _processingInstructions]; } - (OFXMLElement *)XMLElementBySerializing { - return [OFXMLElement elementWithName: [self className] + return [OFXMLElement elementWithName: self.className namespace: OF_SERIALIZATION_NS stringValue: _processingInstructions]; } @end