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 2016/04/29 23:30:16 UTC

[5/6] thrift git commit: THRIFT-3806 Swift generator does not handle self-referring structs Client: Swift Patch: Stig Bakken

THRIFT-3806 Swift generator does not handle self-referring structs
Client: Swift
Patch: Stig Bakken <st...@zedge.net>

This closes #997


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

Branch: refs/heads/master
Commit: ad3714ac3d7b9220d16f3a68503c261b8d22c8ee
Parents: b749c26
Author: Stig Bakken <st...@zedge.net>
Authored: Wed Apr 6 16:35:37 2016 +0200
Committer: Jens Geyer <je...@apache.org>
Committed: Fri Apr 29 23:29:28 2016 +0200

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


http://git-wip-us.apache.org/repos/asf/thrift/blob/ad3714ac/compiler/cpp/src/generate/t_swift_generator.cc
----------------------------------------------------------------------
diff --git a/compiler/cpp/src/generate/t_swift_generator.cc b/compiler/cpp/src/generate/t_swift_generator.cc
index e9e8cc9..6e48bca 100644
--- a/compiler/cpp/src/generate/t_swift_generator.cc
+++ b/compiler/cpp/src/generate/t_swift_generator.cc
@@ -448,7 +448,7 @@ void t_swift_generator::generate_swift_struct(ofstream& out,
   
   string visibility = is_private ? "private" : "public";
   
-  out << indent() << visibility << " struct " << tstruct->get_name();
+  out << indent() << visibility << " final class " << tstruct->get_name();
 
   if (tstruct->is_xception()) {
     out << " : ErrorType";