mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 12:16:40 +00:00
([NSInvocation +initialize]): Fix typo.
([NSInvocation +invocationWithMethodSignature:]): Likewise. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1003 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5df75048c4
commit
4bf7f6fe58
1 changed files with 5 additions and 3 deletions
|
@ -23,13 +23,15 @@
|
|||
|
||||
#include <objects/stdobjects.h>
|
||||
#include <Foundation/NSInvocation.h>
|
||||
#include <Foundation/NSMethodSignature.h>
|
||||
#include <objects/Invocation.h>
|
||||
|
||||
@implementation NSInvocation
|
||||
|
||||
+ (void) initialize
|
||||
{
|
||||
if (self == [NSInvocation class])
|
||||
class_add_behavior (self, [MethodInvocation class]);
|
||||
class_add_behavior (self, [Invocation class]);
|
||||
}
|
||||
|
||||
+ (NSInvocation*) invocationWithObjCTypes: (const char*) types
|
||||
|
@ -37,11 +39,11 @@
|
|||
return [[self alloc] initWithArgframe: NULL type: types];
|
||||
}
|
||||
|
||||
+ (NSInvocation*) invocationWithMethodSignature: (MethodSignature*)ms
|
||||
+ (NSInvocation*) invocationWithMethodSignature: (NSMethodSignature*)ms
|
||||
{
|
||||
/* This assumes that the methodReturnType also includes the
|
||||
parameter types. */
|
||||
return [self invocationWithObjectTypes: [ms methodReturnType]];
|
||||
return [self invocationWithObjCTypes: [ms methodReturnType]];
|
||||
}
|
||||
|
||||
- (NSMethodSignature*) methodSignature
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue