From a623ca01d804d60fb404db1b8739063e5b99a97c Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Sun, 21 Jan 2018 23:48:25 +0100 Subject: [PATCH] Adjust to ObjFW changes --- src/XMPPConnection.m | 6 ++++-- src/XMPPDiscoIdentity.m | 2 +- src/XMPPPresence.m | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/XMPPConnection.m b/src/XMPPConnection.m index c004e8a..28058a2 100644 --- a/src/XMPPConnection.m +++ b/src/XMPPConnection.m @@ -372,7 +372,8 @@ OF_ASSUME_NONNULL_END length: BUFFER_LENGTH target: self selector: @selector(stream:didReadIntoBuffer:length: - exception:)]; + exception:) + context: nil]; } - (void)asyncConnectAndHandle @@ -460,7 +461,8 @@ OF_ASSUME_NONNULL_END target: self selector: @selector(stream: didReadIntoBuffer:length: - exception:)]; + exception:) + context: nil]; return false; } diff --git a/src/XMPPDiscoIdentity.m b/src/XMPPDiscoIdentity.m index fb5f09c..7e85b8b 100644 --- a/src/XMPPDiscoIdentity.m +++ b/src/XMPPDiscoIdentity.m @@ -129,7 +129,7 @@ if (object == self) return OF_ORDERED_SAME; - if (![object isKindOfClass: [XMPPDiscoIdentity class]]) + if (![(id)object isKindOfClass: [XMPPDiscoIdentity class]]) @throw [OFInvalidArgumentException exception]; identity = (XMPPDiscoIdentity *)object; diff --git a/src/XMPPPresence.m b/src/XMPPPresence.m index 1c11cc7..1230668 100644 --- a/src/XMPPPresence.m +++ b/src/XMPPPresence.m @@ -218,7 +218,7 @@ show_to_int(OFString *show) if (object == self) return OF_ORDERED_SAME; - if (![object isKindOfClass: [XMPPPresence class]]) + if (![(id)object isKindOfClass: [XMPPPresence class]]) @throw [OFInvalidArgumentException exception]; otherPresence = (XMPPPresence *)object;