Permit setters to return values.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28295 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2009-05-23 06:00:45 +00:00
parent 37524b9c19
commit 1bf97bc92e
2 changed files with 8 additions and 4 deletions

View file

@ -473,11 +473,10 @@ replacementForClass(Class c)
}
/*
* A setter must take three arguments (self, _cmd, value)
* and return nothing.
* A setter must take three arguments (self, _cmd, value).
* The return value (if any) is ignored.
*/
if (*[sig methodReturnType] != _C_VOID
|| [sig numberOfArguments] != 3)
if ([sig numberOfArguments] != 3)
{
continue; // Not a valid setter method.
}