mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 20:26:42 +00:00
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:
parent
89a0cb9080
commit
324432d9d1
3 changed files with 24 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue