You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by je...@apache.org on 2015/09/21 23:20:01 UTC

thrift git commit: THRIFT-3338 Stray underscore in generated go when service name starts with "New" Client: Go Patch: Jens Geyer

Repository: thrift
Updated Branches:
  refs/heads/master a649e7473 -> 293e2f450


THRIFT-3338 Stray underscore in generated go when service name starts with "New"
Client: Go
Patch: Jens Geyer


Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/293e2f45
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/293e2f45
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/293e2f45

Branch: refs/heads/master
Commit: 293e2f450b22a993516c7703645540e72e7d3e85
Parents: a649e74
Author: Jens Geyer <je...@apache.org>
Authored: Mon Sep 21 23:15:34 2015 +0200
Committer: Jens Geyer <je...@apache.org>
Committed: Mon Sep 21 23:18:07 2015 +0200

----------------------------------------------------------------------
 compiler/cpp/src/generate/t_go_generator.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/293e2f45/compiler/cpp/src/generate/t_go_generator.cc
----------------------------------------------------------------------
diff --git a/compiler/cpp/src/generate/t_go_generator.cc b/compiler/cpp/src/generate/t_go_generator.cc
index b8e680e..806614f 100644
--- a/compiler/cpp/src/generate/t_go_generator.cc
+++ b/compiler/cpp/src/generate/t_go_generator.cc
@@ -2486,7 +2486,7 @@ void t_go_generator::generate_service_server(t_service* tservice) {
     }
   }
 
-  string pServiceName(privatize(serviceName));
+  string pServiceName(privatize(tservice->get_name()));
   // Generate the header portion
   string self(tmp("self"));