commit | e854206180658f3e840518d46def3572cc79178e | [log] [tgz] |
---|---|---|
author | Roger Meier <roger@apache.org> | Sat Oct 20 21:29:02 2012 +0000 |
committer | Roger Meier <roger@apache.org> | Sat Oct 20 21:29:02 2012 +0000 |
tree | ecec59f1b1c6a5972d9d03a93f8139e47c0c7a21 | |
parent | cc6ea425b74a5ee8e8d508b10aa0f78d1ccc0807 [diff] |
THRIFT-1724 HTML generator doesn't identify unions in output Patch: Kevin Radloff git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1400519 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/compiler/cpp/src/generate/t_html_generator.cc b/compiler/cpp/src/generate/t_html_generator.cc index 6372ab4..3633e62 100644 --- a/compiler/cpp/src/generate/t_html_generator.cc +++ b/compiler/cpp/src/generate/t_html_generator.cc
@@ -579,6 +579,8 @@ f_out_ << "<h3 id=\"Struct_" << name << "\">"; if (tstruct->is_xception()) { f_out_ << "Exception: "; + } else if (tstruct->is_union()) { + f_out_ << "Union: "; } else { f_out_ << "Struct: "; }