No more getInputTransport vs getOutputTransport in protocols
Summary: It is just getTransport ow
Reviewed By: aditya
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664941 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/compiler/cpp/src/generate/t_cpp_generator.cc b/compiler/cpp/src/generate/t_cpp_generator.cc
index 8e2bbdf..eb88a17 100644
--- a/compiler/cpp/src/generate/t_cpp_generator.cc
+++ b/compiler/cpp/src/generate/t_cpp_generator.cc
@@ -1119,7 +1119,7 @@
indent() << "args.write(oprot_);" << endl <<
endl <<
indent() << "oprot_->writeMessageEnd();" << endl <<
- indent() << "oprot_->getOutputTransport()->flush();" << endl;
+ indent() << "oprot_->getTransport()->flush();" << endl;
scope_down(f_service_);
f_service_ << endl;
@@ -1411,7 +1411,7 @@
indent() << argsname << " args;" << endl <<
indent() << "args.read(iprot);" << endl <<
indent() << "iprot->readMessageEnd();" << endl <<
- indent() << "iprot->getInputTransport()->readEnd();" << endl <<
+ indent() << "iprot->getTransport()->readEnd();" << endl <<
endl;
t_struct* xs = tfunction->get_xceptions();
@@ -1500,8 +1500,8 @@
indent() << "oprot->writeMessageBegin(\"" << tfunction->get_name() << "\", facebook::thrift::protocol::T_REPLY, seqid);" << endl <<
indent() << "result.write(oprot);" << endl <<
indent() << "oprot->writeMessageEnd();" << endl <<
- indent() << "oprot->getOutputTransport()->flush();" << endl <<
- indent() << "oprot->getOutputTransport()->writeEnd();" << endl;
+ indent() << "oprot->getTransport()->flush();" << endl <<
+ indent() << "oprot->getTransport()->writeEnd();" << endl;
// Close function
scope_down(f_service_);