Properly uncapitalize package names when referencing structs
authorDavid Reiss <dreiss@apache.org>
Tue, 10 Jun 2008 22:57:52 +0000 (22:57 +0000)
committerDavid Reiss <dreiss@apache.org>
Tue, 10 Jun 2008 22:57:52 +0000 (22:57 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666379 13f79535-47bb-0310-9956-ffa450edef68

compiler/cpp/src/generate/t_alterl_generator.cc

index 1981dff..9f75387 100644 (file)
@@ -773,5 +773,5 @@ std::string t_alterl_generator::generate_type_term(t_type* type,
 }
 
 std::string t_alterl_generator::type_module(t_type* ttype) {
-  return ttype->get_program()->get_name() + "_types";
+  return uncapitalize(ttype->get_program()->get_name()) + "_types";
 }