You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by dr...@apache.org on 2009/03/19 21:33:15 UTC
svn commit: r756179 -
/incubator/thrift/trunk/compiler/cpp/src/generate/t_csharp_generator.cc
Author: dreiss
Date: Thu Mar 19 20:33:15 2009
New Revision: 756179
URL: http://svn.apache.org/viewvc?rev=756179&view=rev
Log:
THRIFT-384. csharp: Fix handling of fields named "value"
Modified:
incubator/thrift/trunk/compiler/cpp/src/generate/t_csharp_generator.cc
Modified: incubator/thrift/trunk/compiler/cpp/src/generate/t_csharp_generator.cc
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/compiler/cpp/src/generate/t_csharp_generator.cc?rev=756179&r1=756178&r2=756179&view=diff
==============================================================================
--- incubator/thrift/trunk/compiler/cpp/src/generate/t_csharp_generator.cc (original)
+++ incubator/thrift/trunk/compiler/cpp/src/generate/t_csharp_generator.cc Thu Mar 19 20:33:15 2009
@@ -1510,7 +1510,7 @@
indent(out) << "set" << endl;
scope_up(out);
indent(out) << "__isset." << tfield->get_name() << " = true;" << endl;
- indent(out) << tfield->get_name() << " = value;" << endl;
+ indent(out) << "this." << tfield->get_name() << " = value;" << endl;
scope_down(out);
scope_down(out);
out << endl;