Summary: stop generating files/modules in titlecase
Notes: somehow we access service_name_ before the constructor downcases it ... burnsauce
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665170
13f79535-47bb-0310-9956-
ffa450edef68
* @param tservice The service definition
*/
void t_erl_generator::generate_service(t_service* tservice) {
+ // somehow this point is reached before the constructor and it's not downcased yet
+ // ...awesome
+ service_name_[0] = tolower(service_name_[0]);
+
string f_service_hrl_name = string(T_ERL_DIR)+"/"+service_name_+".hrl";
string f_service_name = string(T_ERL_DIR)+"/"+service_name_+".erl";
f_service_file_.open(f_service_name.c_str());