Skip to content
Snippets Groups Projects
Commit c7eed74d authored by vjpai's avatar vjpai
Browse files

Remove brace initialization for gcc-4.4 compatibility

parent 7d980e44
No related branches found
No related tags found
No related merge requests found
......@@ -101,11 +101,13 @@ void PrintAdvancedSignature(Printer *printer,
}
inline map<string, string> GetMethodVars(const MethodDescriptor *method) {
return {{ "method_name", method->name() },
{ "request_type", method->input_type()->name() },
{ "response_type", method->output_type()->name() },
{ "request_class", ClassName(method->input_type()) },
{ "response_class", ClassName(method->output_type()) }};
map<string,string> res;
res["method_name"] = method->name();
res["request_type"] = method->input_type()->name();
res["response_type"] = method->output_type()->name();
res["request_class"] = ClassName(method->input_type());
res["response_class"] = ClassName(method->output_type());
return res;
}
void PrintMethodDeclarations(Printer *printer,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment