[thrift] Erlang Thrift 'oop:get' -> 'This#'

Summary: the client structures aren't oop objects, they're vanilla records ... adjust accordingly

Reviewed By: eletuchy

Test Plan: ok

Revert Plan: ok


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665300 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/compiler/cpp/src/generate/t_erl_generator.cc b/compiler/cpp/src/generate/t_erl_generator.cc
index 3d4d1d7..6e5f998 100644
--- a/compiler/cpp/src/generate/t_erl_generator.cc
+++ b/compiler/cpp/src/generate/t_erl_generator.cc
@@ -709,8 +709,8 @@
 
       // Serialize the request header
       f_service_ <<
-	indent() << "Oprot = oop:get(This, oprot)," << endl <<
-	indent() << "Seqid = oop:get(This, seqid)," << endl <<
+	indent() << "Oprot = This#" << service_name_ << ".oprot," << endl <<
+	indent() << "Seqid = This#" << service_name_ << ".seqid," << endl <<
 	indent() << "?R3(Oprot, writeMessageBegin, \"" << (*f_iter)->get_name() << "\", ?tMessageType_CALL, Seqid)," << endl <<
 	indent() << "Args = #" << (*f_iter)->get_name() << "_args{";
 
@@ -752,7 +752,7 @@
       // TODO(mcslee): Validate message reply here, seq ids etc.
 
       f_service_ <<
-	indent() << "Iprot = oop:get(This, iprot)," << endl <<
+	indent() << "Iprot = This#" << service_name_ << ".iprot," << endl <<
 	indent() << "{ _Fname, Mtype, _Rseqid } = ?R0(Iprot, readMessageBegin)," << endl <<
 	indent() << "if" << endl <<
 	indent() << "  Mtype == ?tMessageType_EXCEPTION ->" << endl <<