Use instancetype.
This commit is contained in:
parent
4fead04d9a
commit
9ae39edeb4
32 changed files with 153 additions and 153 deletions
|
@ -43,23 +43,23 @@ static int show_to_int(OFString *show)
|
|||
}
|
||||
|
||||
@implementation XMPPPresence
|
||||
+ presence
|
||||
+ (instancetype)presence
|
||||
{
|
||||
return [[[self alloc] init] autorelease];
|
||||
}
|
||||
|
||||
+ presenceWithID: (OFString*)ID
|
||||
+ (instancetype)presenceWithID: (OFString*)ID
|
||||
{
|
||||
return [[[self alloc] initWithID: ID] autorelease];
|
||||
}
|
||||
|
||||
+ presenceWithType: (OFString*)type
|
||||
+ (instancetype)presenceWithType: (OFString*)type
|
||||
{
|
||||
return [[[self alloc] initWithType: type] autorelease];
|
||||
}
|
||||
|
||||
+ presenceWithType: (OFString*)type
|
||||
ID: (OFString*)ID
|
||||
+ (instancetype)presenceWithType: (OFString*)type
|
||||
ID: (OFString*)ID
|
||||
{
|
||||
return [[[self alloc] initWithType: type
|
||||
ID: ID] autorelease];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue