@@ -19,10 +19,12 @@ #import "OFUnboundPrefixException.h" #import "OFString.h" #import "OFXMLParser.h" @implementation OFUnboundPrefixException +@synthesize prefix = _prefix, parser = _parser; + + (instancetype)exceptionWithPrefix: (OFString*)prefix parser: (OFXMLParser*)parser { return [[[self alloc] initWithPrefix: prefix parser: parser] autorelease]; @@ -61,16 +63,6 @@ { return [OFString stringWithFormat: @"An XML parser of type %@ encountered the unbound prefix %@ in " @"line %zu!", [_parser class], _prefix, [_parser lineNumber]]; } - -- (OFString*)prefix -{ - OF_GETTER(_prefix, true) -} - -- (OFXMLParser*)parser -{ - OF_GETTER(_parser, true) -} @end