Skip to content

Commit

Permalink
Update CppGenServant.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
yuansx authored Aug 30, 2018
1 parent 86e3396 commit 83400be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/tools/pb2tarscpp/CppGenServant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ static std::string GenMethods(const ::google::protobuf::MethodDescriptor* method

out += "virtual " + pkg + "::" + method->output_type()->name() + " " + method->name() +
"(const " + pkg + "::" + method->input_type()->name() + "& , tars::TarsCurrentPtr current) = 0;" + LineFeed(indent);
out += "static void async_response_" + method->name() + "(tars::TarsCurrentPtr current, const TestApp::PbResponse &_ret)" + LineFeed(indent);
out += "static void async_response_" + method->name() + "(tars::TarsCurrentPtr current, const " + pkg + "::" + method->output_type()->name() + "&_ret)" + LineFeed(indent);
out += "{" + LineFeed(++indent);
out += "std::string _os;" + LineFeed(indent) +
" _ret.SerializeToString(&_os);" + LineFeed(indent) +
Expand Down

0 comments on commit 83400be

Please sign in to comment.