From 9b49f042394b3365cc958ebc42dd9ad5afd8b901 Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Fri, 15 Feb 2013 15:15:21 +0100 Subject: [PATCH] Fix a bunch of warnings. --- src/XMPPConnection.h | 4 ++++ src/XMPPContactManager.m | 4 ++-- src/XMPPRoster.h | 3 +++ src/XMPPStreamManagement.m | 8 ++++---- 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/XMPPConnection.h b/src/XMPPConnection.h index a6828b4..456fd9d 100644 --- a/src/XMPPConnection.h +++ b/src/XMPPConnection.h @@ -360,6 +360,7 @@ - (void)setLanguage: (OFString*)language; - (OFString*)language; - (BOOL)supportsRosterVersioning; +- (BOOL)supportsStreamManagement; /// \cond internal - (void)XMPP_startStream; @@ -384,3 +385,6 @@ - (XMPPMulticastDelegate*)XMPP_delegates; /// \endcond @end + +@interface OFObject (XMPPConnectionDelegate) +@end diff --git a/src/XMPPContactManager.m b/src/XMPPContactManager.m index c20442a..4f978b0 100644 --- a/src/XMPPContactManager.m +++ b/src/XMPPContactManager.m @@ -58,12 +58,12 @@ [super dealloc]; } -- (void)addDelegate: (id )delegate +- (void)addDelegate: (id )delegate { [_delegates addDelegate: delegate]; } -- (void)removeDelegate: (id )delegate +- (void)removeDelegate: (id )delegate { [_delegates removeDelegate: delegate]; } diff --git a/src/XMPPRoster.h b/src/XMPPRoster.h index 14a800e..75f2187 100644 --- a/src/XMPPRoster.h +++ b/src/XMPPRoster.h @@ -160,3 +160,6 @@ - (XMPPRosterItem*)XMPP_rosterItemWithXMLElement: (OFXMLElement*)element; /// \endcond @end + +@interface OFObject (XMPPRosterDelegate) +@end diff --git a/src/XMPPStreamManagement.m b/src/XMPPStreamManagement.m index b28b5e0..7bd5adf 100644 --- a/src/XMPPStreamManagement.m +++ b/src/XMPPStreamManagement.m @@ -90,11 +90,11 @@ } */ -- (void)connection: (XMPPConnection*)connection_ - wasBoundToJID: (XMPPJID*)jid +- (void)connection: (XMPPConnection*)connection + wasBoundToJID: (XMPPJID*)JID { - if ([connection_ supportsStreamManagement]) - [connection_ sendStanza: + if ([connection supportsStreamManagement]) + [connection sendStanza: [OFXMLElement elementWithName: @"enable" namespace: XMPP_NS_SM]]; }