You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by ro...@apache.org on 2012/10/20 23:29:02 UTC

svn commit: r1400519 - /thrift/trunk/compiler/cpp/src/generate/t_html_generator.cc

Author: roger
Date: Sat Oct 20 21:29:02 2012
New Revision: 1400519

URL: http://svn.apache.org/viewvc?rev=1400519&view=rev
Log:
THRIFT-1724 HTML generator doesn't identify unions in output
Patch: Kevin Radloff

Modified:
    thrift/trunk/compiler/cpp/src/generate/t_html_generator.cc

Modified: thrift/trunk/compiler/cpp/src/generate/t_html_generator.cc
URL: http://svn.apache.org/viewvc/thrift/trunk/compiler/cpp/src/generate/t_html_generator.cc?rev=1400519&r1=1400518&r2=1400519&view=diff
==============================================================================
--- thrift/trunk/compiler/cpp/src/generate/t_html_generator.cc (original)
+++ thrift/trunk/compiler/cpp/src/generate/t_html_generator.cc Sat Oct 20 21:29:02 2012
@@ -579,6 +579,8 @@ void t_html_generator::generate_struct(t
   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: ";
   }