mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 16:50:58 +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
746befb2a1
commit
650c648af6
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);
|
NSComparisonResult (*imp)(id, SEL, id);
|
||||||
|
|
||||||
if (context == 0)
|
if (context == 0)
|
||||||
[NSException raise: NSInvalidArgumentException
|
{
|
||||||
format: @"compare null selector given"];
|
[NSException raise: NSInvalidArgumentException
|
||||||
|
format: @"compare null selector given"];
|
||||||
|
}
|
||||||
|
|
||||||
imp = (NSComparisonResult (*)(id, SEL, id))
|
imp = (NSComparisonResult (*)(id, SEL, id))
|
||||||
[elem1 methodForSelector: context];
|
[elem1 methodForSelector: context];
|
||||||
|
@ -805,7 +807,6 @@ compare(id elem1, id elem2, void* context)
|
||||||
{
|
{
|
||||||
[NSException raise: NSGenericException
|
[NSException raise: NSGenericException
|
||||||
format: @"invalid selector passed to compare"];
|
format: @"invalid selector passed to compare"];
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return (*imp)(elem1, context, elem2);
|
return (*imp)(elem1, context, elem2);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue