Skip to content

Commit dcf9bba

Browse files
ThriftToJson protocol extends NSObject
1 parent 70234b6 commit dcf9bba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/cpp/src/generate/t_cocoa_generator.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ string t_cocoa_generator::cocoa_thrift_imports() {
356356
* JSON strings.
357357
*/
358358
string t_cocoa_generator::to_json_protocol() {
359-
return string() + "@protocol ThriftToJson\n"
359+
return string() + "@protocol ThriftToJson <NSObject>\n"
360360
+ "- (void) toJson: (NSMutableString *) builder;\n"
361361
+ "@end\n\n";
362362
}

0 commit comments

Comments
 (0)