THRIFT-2304 cpp:Move client assignments from construtor in method

fix short_suffix
Patch: Roger Meier
This commit is contained in:
Roger Meier 2014-01-05 02:10:33 +01:00
parent 2c7e89b305
commit 6bac11f4fa

6
compiler/cpp/src/generate/t_cpp_generator.cc Normal file → Executable file
View File

@ -2259,7 +2259,7 @@ void t_cpp_generator::generate_service_client(t_service* tservice, string style)
if (extends.empty()) {
f_header_ << "{" << endl;
f_header_ <<
indent() << " setProtocol(prot);" << endl <<
indent() << " setProtocol" << short_suffix << "(prot);" << endl <<
indent() << "}" << endl;
} else {
f_header_ << ":" << endl;
@ -2274,7 +2274,7 @@ void t_cpp_generator::generate_service_client(t_service* tservice, string style)
if (extends.empty()) {
f_header_ << "{" << endl;
f_header_ <<
indent() << " setProtocol(iprot,oprot);" << endl <<
indent() << " setProtocol" << short_suffix << "(iprot,oprot);" << endl <<
indent() << "}" << endl;
} else {
f_header_ << ":" <<
@ -2289,7 +2289,7 @@ void t_cpp_generator::generate_service_client(t_service* tservice, string style)
f_header_ <<
indent() << "void setProtocol" << short_suffix << "("
<< prot_ptr << " prot) {" <<endl;
f_header_ << indent() << "setProtocol(prot,prot);"<<endl;
f_header_ << indent() << "setProtocol" << short_suffix << "(prot,prot);"<<endl;
f_header_ << indent() << "}"<<endl;
// 2: two parameter
f_header_ <<