Use instancetype.
This commit is contained in:
parent
4fead04d9a
commit
9ae39edeb4
32 changed files with 153 additions and 153 deletions
|
@ -26,13 +26,13 @@
|
|||
#import "namespaces.h"
|
||||
|
||||
@implementation XMPPDiscoEntity
|
||||
+ discoEntityWithConnection: (XMPPConnection*)connection
|
||||
+ (instancetype)discoEntityWithConnection: (XMPPConnection*)connection
|
||||
{
|
||||
return [[[self alloc] initWithConnection: connection] autorelease];
|
||||
}
|
||||
|
||||
+ discoEntityWithConnection: (XMPPConnection*)connection
|
||||
capsNode: (OFString*)capsNode
|
||||
+ (instancetype)discoEntityWithConnection: (XMPPConnection*)connection
|
||||
capsNode: (OFString*)capsNode
|
||||
{
|
||||
return [[[self alloc] initWithConnection: connection
|
||||
capsNode: capsNode] autorelease];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue