Use instancetype.

This commit is contained in:
Jonathan Schleifer 2013-06-23 23:41:47 +02:00
parent 4fead04d9a
commit 9ae39edeb4
32 changed files with 153 additions and 153 deletions

View file

@ -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];