@@ -30,10 +30,12 @@ static of_mutex_t mutex; #endif @implementation OFAddressTranslationFailedException +@synthesize host = _host; + #if !defined(HAVE_THREADSAFE_GETADDRINFO) && defined(OF_HAVE_THREADS) + (void)initialize { if (self != [OFAddressTranslationFailedException class]) return; @@ -72,12 +74,12 @@ } return self; } -- initWithHost: (OFString*)host - error: (int)error +- (instancetype)initWithHost: (OFString*)host + error: (int)error { self = [super init]; @try { _host = [host copy]; @@ -88,11 +90,11 @@ } return self; } -- initWithError: (int)error +- (instancetype)initWithError: (int)error { self = [super init]; _error = error; @@ -167,11 +169,6 @@ } # endif # endif #endif } - -- (OFString*)host -{ - OF_GETTER(_host, true) -} @end