code tidyup and c-99ism fixes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25341 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rmottola 2007-07-19 21:38:14 +00:00
parent 89a0cb9080
commit 324432d9d1
3 changed files with 24 additions and 9 deletions

View file

@ -871,6 +871,7 @@ static id ValueForKey(NSObject *self, const char *key, unsigned size)
NSDictionary *dict;
NSException *exp;
static IMP o = 0;
NSString *reason;
/* Backward compatibility hack */
if (o == 0)
@ -886,7 +887,7 @@ static id ValueForKey(NSObject *self, const char *key, unsigned size)
self, @"NSTargetObjectUserInfoKey",
(aKey ? (id)aKey : (id)@"(nil)"), @"NSUnknownUserInfoKey",
nil];
NSString * reason = [NSString stringWithFormat:
reason = [NSString stringWithFormat:
@"Unable to find value for key \"%@\" of object %@ (%@)",
aKey, self, [self class]];
exp = [NSException exceptionWithName: NSUndefinedKeyException