Fix a bunch of warnings.

This commit is contained in:
Jonathan Schleifer 2013-02-15 15:15:21 +01:00
parent 856ac1bd1a
commit 9b49f04239
4 changed files with 13 additions and 6 deletions

View file

@ -360,6 +360,7 @@
- (void)setLanguage: (OFString*)language; - (void)setLanguage: (OFString*)language;
- (OFString*)language; - (OFString*)language;
- (BOOL)supportsRosterVersioning; - (BOOL)supportsRosterVersioning;
- (BOOL)supportsStreamManagement;
/// \cond internal /// \cond internal
- (void)XMPP_startStream; - (void)XMPP_startStream;
@ -384,3 +385,6 @@
- (XMPPMulticastDelegate*)XMPP_delegates; - (XMPPMulticastDelegate*)XMPP_delegates;
/// \endcond /// \endcond
@end @end
@interface OFObject (XMPPConnectionDelegate) <XMPPConnectionDelegate>
@end

View file

@ -58,12 +58,12 @@
[super dealloc]; [super dealloc];
} }
- (void)addDelegate: (id <XMPPConnectionDelegate>)delegate - (void)addDelegate: (id <XMPPContactManagerDelegate>)delegate
{ {
[_delegates addDelegate: delegate]; [_delegates addDelegate: delegate];
} }
- (void)removeDelegate: (id <XMPPConnectionDelegate>)delegate - (void)removeDelegate: (id <XMPPContactManagerDelegate>)delegate
{ {
[_delegates removeDelegate: delegate]; [_delegates removeDelegate: delegate];
} }

View file

@ -160,3 +160,6 @@
- (XMPPRosterItem*)XMPP_rosterItemWithXMLElement: (OFXMLElement*)element; - (XMPPRosterItem*)XMPP_rosterItemWithXMLElement: (OFXMLElement*)element;
/// \endcond /// \endcond
@end @end
@interface OFObject (XMPPRosterDelegate) <XMPPRosterDelegate>
@end

View file

@ -90,11 +90,11 @@
} }
*/ */
- (void)connection: (XMPPConnection*)connection_ - (void)connection: (XMPPConnection*)connection
wasBoundToJID: (XMPPJID*)jid wasBoundToJID: (XMPPJID*)JID
{ {
if ([connection_ supportsStreamManagement]) if ([connection supportsStreamManagement])
[connection_ sendStanza: [connection sendStanza:
[OFXMLElement elementWithName: @"enable" [OFXMLElement elementWithName: @"enable"
namespace: XMPP_NS_SM]]; namespace: XMPP_NS_SM]];
} }