From: David Reiss Date: Wed, 20 Feb 2008 05:30:55 +0000 (+0000) Subject: Fix a typo in the C# generator. X-Git-Tag: 0.2.0~983 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=c91d07c784e603dfb49a0721bab34b0ff960fc3f;p=common%2Fthrift.git Fix a typo in the C# generator. 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 --- diff --git a/compiler/cpp/src/generate/t_csharp_generator.cc b/compiler/cpp/src/generate/t_csharp_generator.cc index 676125c6..45370a4b 100644 --- a/compiler/cpp/src/generate/t_csharp_generator.cc +++ b/compiler/cpp/src/generate/t_csharp_generator.cc @@ -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(); }