Use instancetype.
This commit is contained in:
parent
4fead04d9a
commit
9ae39edeb4
32 changed files with 153 additions and 153 deletions
|
@ -29,22 +29,22 @@
|
|||
#import "namespaces.h"
|
||||
|
||||
@implementation XMPPMessage
|
||||
+ message
|
||||
+ (instancetype)message
|
||||
{
|
||||
return [[[self alloc] init] autorelease];
|
||||
}
|
||||
|
||||
+ messageWithID: (OFString*)ID
|
||||
+ (instancetype)messageWithID: (OFString*)ID
|
||||
{
|
||||
return [[[self alloc] initWithID: ID] autorelease];
|
||||
}
|
||||
|
||||
+ messageWithType: (OFString*)type
|
||||
+ (instancetype)messageWithType: (OFString*)type
|
||||
{
|
||||
return [[[self alloc] initWithType: type] autorelease];
|
||||
}
|
||||
|
||||
+ messageWithType: (OFString*)type
|
||||
+ (instancetype)messageWithType: (OFString*)type
|
||||
ID: (OFString*)ID
|
||||
{
|
||||
return [[[self alloc] initWithType: type
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue