Adjust to ObjFW changes

This commit is contained in:
Jonathan Schleifer 2018-01-21 23:48:25 +01:00
parent 3d0573f432
commit a623ca01d8
No known key found for this signature in database
GPG key ID: 28D65178B37F33E3
3 changed files with 6 additions and 4 deletions

View file

@ -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;
}

View file

@ -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;

View file

@ -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;