Use instancetype.
This commit is contained in:
parent
4fead04d9a
commit
9ae39edeb4
32 changed files with 153 additions and 153 deletions
|
@ -23,17 +23,17 @@
|
|||
#import "XMPPDiscoIdentity.h"
|
||||
|
||||
@implementation XMPPDiscoIdentity
|
||||
+ identityWithCategory: (OFString*)category
|
||||
type: (OFString*)type
|
||||
name: (OFString*)name
|
||||
+ (instancetype)identityWithCategory: (OFString*)category
|
||||
type: (OFString*)type
|
||||
name: (OFString*)name
|
||||
{
|
||||
return [[[self alloc] initWithCategory: category
|
||||
type: type
|
||||
name: name] autorelease];
|
||||
}
|
||||
|
||||
+ identityWithCategory: (OFString*)category
|
||||
type: (OFString*)type
|
||||
+ (instancetype)identityWithCategory: (OFString*)category
|
||||
type: (OFString*)type
|
||||
{
|
||||
return [[[self alloc] initWithCategory: category
|
||||
type: type] autorelease];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue