From 2b7d80a77cd058c952836c78b359910bc30a8e2e Mon Sep 17 00:00:00 2001 From: mccallum Date: Mon, 13 May 1996 17:28:00 +0000 Subject: [PATCH] ([NSDictionary -description]): Fix warnings. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1537 72102866-910b-0410-8b05-ffd578937521 --- Source/NSDictionary.m | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/Source/NSDictionary.m b/Source/NSDictionary.m index 74b6482ac..bf50ba0d0 100644 --- a/Source/NSDictionary.m +++ b/Source/NSDictionary.m @@ -182,16 +182,18 @@ static Class NSMutableDictionary_concrete_class; id desc; id keyenum = [self keyEnumerator]; id key; - int i; - desc = [NSMutableString stringWithCapacity:2]; - [desc appendString:@"{"]; - while(key = [keyenum nextObject]) { /* I wish appendString: returned self*/ - [desc appendString:[key description]]; - [desc appendString:@" = "]; - [desc appendString:[[self objectForKey:key] description]]; - [desc appendString:@"; "]; - } - [desc appendString:@"}"]; + + desc = [NSMutableString stringWithCapacity: 2]; + [desc appendString: @"{"]; + while((key = [keyenum nextObject])) + { + /* I wish appendString: returned self*/ + [desc appendString: [key description]]; + [desc appendString: @" = "]; + [desc appendString: [[self objectForKey: key] description]]; + [desc appendString: @"; "]; + } + [desc appendString: @"}"]; return desc; }