Fix compilation with GCC

This commit is contained in:
Jonathan Schleifer 2018-11-05 23:02:42 +01:00
parent 3438e3569b
commit b3244f0d9d
No known key found for this signature in database
GPG key ID: D83A76BFE376345E
8 changed files with 59 additions and 11 deletions

View file

@ -22,15 +22,29 @@
*/
#import "XMPPDiscoEntity.h"
#import "XMPPDiscoIdentity.h"
#import "XMPPDiscoNode.h"
#import "XMPPDiscoNode+Private.h"
#import "XMPPDiscoIdentity.h"
#import "XMPPIQ.h"
#import "XMPPJID.h"
#import "namespaces.h"
@implementation XMPPDiscoEntity
@synthesize discoNodes = _discoNodes, capsNode = _capsNode;
+ (instancetype)discoNodeWithJID: (XMPPJID *)JID
node: (OFString *)node
{
OF_UNRECOGNIZED_SELECTOR
}
+ (instancetype)discoNodeWithJID: (XMPPJID *)JID
node: (OFString *)node
name: (OFString *)name
{
OF_UNRECOGNIZED_SELECTOR
}
+ (instancetype)discoEntityWithConnection: (XMPPConnection *)connection
{
return [[[self alloc] initWithConnection: connection] autorelease];
@ -43,10 +57,10 @@
capsNode: capsNode] autorelease];
}
- (instancetype)initWithConnection: (XMPPConnection *)connection
- (instancetype)initWithJID: (XMPPJID *)JID
node: (nullable OFString *)node
{
return [self initWithConnection: connection
capsNode: nil];
OF_INVALID_INIT_METHOD
}
- (instancetype)initWithJID: (XMPPJID *)JID
@ -56,6 +70,12 @@
OF_INVALID_INIT_METHOD
}
- (instancetype)initWithConnection: (XMPPConnection *)connection
{
return [self initWithConnection: connection
capsNode: nil];
}
- (instancetype)initWithConnection: (XMPPConnection *)connection
capsNode: (OFString *)capsNode
{