THRIFT-3462 Cocoa generates Incorrect #import header names
Client: Cocoa
Patch: J. Riskin

This closes #722


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

Branch: refs/heads/master
Commit: bc3829e8fdc4a39b7ba45b9dbc8317ff22bea004
Parents: 620e7a8
Author: jriskin <[email protected]>
Authored: Mon Nov 30 11:59:01 2015 -0800
Committer: Jens Geyer <[email protected]>
Committed: Wed Dec 2 21:46:34 2015 +0100

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


http://git-wip-us.apache.org/repos/asf/thrift/blob/bc3829e8/compiler/cpp/src/generate/t_cocoa_generator.cc
----------------------------------------------------------------------
diff --git a/compiler/cpp/src/generate/t_cocoa_generator.cc 
b/compiler/cpp/src/generate/t_cocoa_generator.cc
index 61a24c0..8ea2400 100644
--- a/compiler/cpp/src/generate/t_cocoa_generator.cc
+++ b/compiler/cpp/src/generate/t_cocoa_generator.cc
@@ -345,7 +345,7 @@ string t_cocoa_generator::cocoa_thrift_imports() {
   // Include other Thrift includes
   const vector<t_program*>& other_includes = program_->get_includes();
   for (size_t i = 0; i < other_includes.size(); ++i) {
-    includes << "#import \"" << other_includes[i]->get_name() << ".h\"" << 
endl;
+    includes << "#import \"" << cocoa_prefix_ << 
capitalize(other_includes[i]->get_name()) << ".h\"" << endl;
   }
   
   includes << endl;

Reply via email to