Fix a typo in the C# generator.
authorDavid Reiss <dreiss@apache.org>
Wed, 20 Feb 2008 05:30:55 +0000 (05:30 +0000)
committerDavid Reiss <dreiss@apache.org>
Wed, 20 Feb 2008 05:30:55 +0000 (05:30 +0000)
Actually, it is not a typo.  The original authors didn't convert one call
to get_java_package to get_csharp_namespace.

Tested by building Thrift.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665489 13f79535-47bb-0310-9956-ffa450edef68

compiler/cpp/src/generate/t_csharp_generator.cc

index 676125c..45370a4 100644 (file)
@@ -1399,7 +1399,7 @@ string t_csharp_generator::type_name(t_type* ttype, bool in_container, bool in_i
 
   t_program* program = ttype->get_program();
   if (program != NULL && program != program_) {
-    string ns = program->get_java_package();
+    string ns = program->get_csharp_namespace();
     if (!ns.empty()) {
       return ns + "." + ttype->get_name();
     }