diff options
author | Jens Geyer <jensg@apache.org> | 2014-08-07 22:39:56 +0200 |
---|---|---|
committer | Jens Geyer <jensg@apache.org> | 2014-08-07 22:41:24 +0200 |
commit | c20eeaae8296fa9d9de34b07fe8b21cf509c8884 (patch) | |
tree | d6e2701de6294045a23065f011964fa1a2983f51 /compiler/cpp | |
parent | ca44a622dfd0d01f1b0d00d26b9208eb69995176 (diff) | |
download | thrift-c20eeaae8296fa9d9de34b07fe8b21cf509c8884.tar.gz |
THRIFT-2589 const of BaseType in IDL generates static instead of const properties
Client: C#
Patch: Thomas Lazar
Diffstat (limited to 'compiler/cpp')
-rw-r--r-- | compiler/cpp/src/generate/t_csharp_generator.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/cpp/src/generate/t_csharp_generator.cc b/compiler/cpp/src/generate/t_csharp_generator.cc index 11db5d675..7944df0ef 100644 --- a/compiler/cpp/src/generate/t_csharp_generator.cc +++ b/compiler/cpp/src/generate/t_csharp_generator.cc @@ -547,7 +547,7 @@ bool t_csharp_generator::print_const_value(std::ofstream& out, string name, t_ty if (!defval || needtype) { out << - (in_static ? "" : "public static ") << + (in_static ? "" : type->is_base_type() ? "public const " : "public static ") << type_name(type) << " "; } if (type->is_base_type()) { |