thrift-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bryanduxb...@apache.org
Subject svn commit: r764549 - /incubator/thrift/trunk/compiler/cpp/src/generate/t_rb_generator.cc
Date Mon, 13 Apr 2009 18:12:07 GMT
Author: bryanduxbury
Date: Mon Apr 13 18:12:07 2009
New Revision: 764549

URL: http://svn.apache.org/viewvc?rev=764549&view=rev
Log:
THRIFT-451. rb: ruby structs use lowercase enum while modules are capitalized

This patch updates the full_type_name call so it capitalizes a type before it's appended to
the module prefix. 


Modified:
    incubator/thrift/trunk/compiler/cpp/src/generate/t_rb_generator.cc

Modified: incubator/thrift/trunk/compiler/cpp/src/generate/t_rb_generator.cc
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/compiler/cpp/src/generate/t_rb_generator.cc?rev=764549&r1=764548&r2=764549&view=diff
==============================================================================
--- incubator/thrift/trunk/compiler/cpp/src/generate/t_rb_generator.cc (original)
+++ incubator/thrift/trunk/compiler/cpp/src/generate/t_rb_generator.cc Mon Apr 13 18:12:07
2009
@@ -989,7 +989,7 @@
   string prefix = "";
 
   string name = ttype->get_name();
-  if (ttype->is_struct() || ttype->is_xception()) {
+  if (ttype->is_struct() || ttype->is_xception() || ttype->is_enum()) {
     name = capitalize(ttype->get_name());
   }
 



Mime
View raw message