Index: src/XMPPExceptions.m ================================================================== --- src/XMPPExceptions.m +++ src/XMPPExceptions.m @@ -62,19 +62,15 @@ [super dealloc]; } - (OFString*)description { - OFAutoreleasePool *pool; - if (description != nil) return description; - pool = [[OFAutoreleasePool alloc] init]; description = [[OFString alloc] initWithFormat: - @"An exception occurred in class %@!", [self className]]; - [pool release]; + @"An exception occurred in class %@!", inClass]; return description; } @end @@ -128,20 +124,16 @@ [super dealloc]; } - (OFString*)description { - OFAutoreleasePool *pool; - if (description != nil) return description; - pool = [[OFAutoreleasePool alloc] init]; description = [[OFString alloc] initWithFormat: @"Stringprep with profile %@ failed on string '%@'!", profile, string]; - [pool release]; return description; } @end @@ -195,20 +187,15 @@ [super dealloc]; } - (OFString*)description { - OFAutoreleasePool *pool; - if (description != nil) return description; - pool = [[OFAutoreleasePool alloc] init]; description = [[OFString alloc] initWithFormat: - @"IDNA operation %@ failed on string '%@'!", - operation, string]; - [pool release]; + @"IDNA operation %@ failed on string '%@'!", operation, string]; return description; } @end @@ -257,18 +244,14 @@ [super dealloc]; } - (OFString*)description { - OFAutoreleasePool *pool; - if (description != nil) return description; - pool = [[OFAutoreleasePool alloc] init]; description = [[OFString alloc] initWithFormat: @"Authentication failed. Reason: %@!", reason]; - [pool release]; return description; } @end