You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by br...@apache.org on 2011/03/25 18:28:19 UTC

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

Author: bryanduxbury
Date: Fri Mar 25 17:28:19 2011
New Revision: 1085480

URL: http://svn.apache.org/viewvc?rev=1085480&view=rev
Log:
THRIFT-1111. html: The HTML generator does not distinguish between string and binary types

Patch: Adrian Muraru

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=1085480&r1=1085479&r2=1085480&view=diff
==============================================================================
--- thrift/trunk/compiler/cpp/src/generate/t_html_generator.cc (original)
+++ thrift/trunk/compiler/cpp/src/generate/t_html_generator.cc Fri Mar 25 17:28:19 2011
@@ -381,7 +381,7 @@ int t_html_generator::print_type(t_type*
       f_out_ << "&gt;";
     }
   } else if (ttype->is_base_type()) {
-    f_out_ << ttype->get_name();
+    f_out_ << (((t_base_type*)ttype)->is_binary() ? "binary" : ttype->get_name());
     len = ttype->get_name().size();
   } else {
     string prog_name = ttype->get_program()->get_name();