mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
minor performance tweak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28237 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c15de5f481
commit
5512e86a20
3 changed files with 66 additions and 6 deletions
|
@ -1353,12 +1353,9 @@ const NSMapTableValueCallBacks NSOwnedPointerMapValueCallBacks =
|
|||
|
||||
if (aKey == nil)
|
||||
{
|
||||
NSException *e;
|
||||
|
||||
e = [NSException exceptionWithName: NSInvalidArgumentException
|
||||
reason: @"Tried to add nil key to map table"
|
||||
userInfo: nil];
|
||||
[e raise];
|
||||
[NSException raise: NSInvalidArgumentException
|
||||
format: @"[%@-%@:] given nil argument",
|
||||
NSStringFromClass([self class]), NSStringFromSelector(_cmd)];
|
||||
}
|
||||
node = GSIMapNodeForKey(self, (GSIMapKey)aKey);
|
||||
if (node)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue