mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
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:
parent
37524b9c19
commit
1bf97bc92e
2 changed files with 8 additions and 4 deletions
|
@ -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.
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue