diff options
author | 2015-07-17 12:18:08 -0700 | |
---|---|---|
committer | 2015-07-17 12:18:08 -0700 | |
commit | 5604712b03d097721b31b60d71ac1f2cdf53c039 (patch) | |
tree | cee57a25fa18e921a5f9b5f0cf8838df53c72282 /src/objective-c/ProtoRPC/ProtoRPC.m | |
parent | 7b52c98e625ee5fbfb2fd205750124836bb9f46b (diff) |
id<GRXWriter> -> GRXWriter * in the runtime
Diffstat (limited to 'src/objective-c/ProtoRPC/ProtoRPC.m')
-rw-r--r-- | src/objective-c/ProtoRPC/ProtoRPC.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/objective-c/ProtoRPC/ProtoRPC.m b/src/objective-c/ProtoRPC/ProtoRPC.m index 49f0e12442..067c359765 100644 --- a/src/objective-c/ProtoRPC/ProtoRPC.m +++ b/src/objective-c/ProtoRPC/ProtoRPC.m @@ -46,7 +46,7 @@ #pragma clang diagnostic ignored "-Wobjc-designated-initializers" - (instancetype)initWithHost:(NSString *)host path:(NSString *)path - requestsWriter:(id<GRXWriter>)requestsWriter { + requestsWriter:(GRXWriter *)requestsWriter { [NSException raise:NSInvalidArgumentException format:@"Please use ProtoRPC's designated initializer instead."]; return nil; @@ -56,7 +56,7 @@ // Designated initializer - (instancetype)initWithHost:(NSString *)host method:(ProtoMethod *)method - requestsWriter:(id<GRXWriter>)requestsWriter + requestsWriter:(GRXWriter *)requestsWriter responseClass:(Class)responseClass responsesWriteable:(id<GRXWriteable>)responsesWriteable { // Because we can't tell the type system to constrain the class, we need to check at runtime: |