mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +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
95b7d44b4d
commit
1d8d31ddcd
2 changed files with 8 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
2009-05-23 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSKeyValueObserving.m:
|
||||
Permit setters which return values.
|
||||
|
||||
2009-05-22 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSFileManager.m:
|
||||
|
|
|
@ -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…
Reference in a new issue