mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
Tidied.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@16018 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
cc1052c46e
commit
7c4a383280
1 changed files with 4 additions and 3 deletions
|
@ -795,8 +795,10 @@ compare(id elem1, id elem2, void* context)
|
|||
NSComparisonResult (*imp)(id, SEL, id);
|
||||
|
||||
if (context == 0)
|
||||
[NSException raise: NSInvalidArgumentException
|
||||
format: @"compare null selector given"];
|
||||
{
|
||||
[NSException raise: NSInvalidArgumentException
|
||||
format: @"compare null selector given"];
|
||||
}
|
||||
|
||||
imp = (NSComparisonResult (*)(id, SEL, id))
|
||||
[elem1 methodForSelector: context];
|
||||
|
@ -805,7 +807,6 @@ compare(id elem1, id elem2, void* context)
|
|||
{
|
||||
[NSException raise: NSGenericException
|
||||
format: @"invalid selector passed to compare"];
|
||||
return 0;
|
||||
}
|
||||
|
||||
return (*imp)(elem1, context, elem2);
|
||||
|
|
Loading…
Reference in a new issue