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