THRIFT-1271. cpp: missing namespace in generated local reflection
authorBryan Duxbury <bryanduxbury@apache.org>
Fri, 19 Aug 2011 18:32:51 +0000 (18:32 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Fri, 19 Aug 2011 18:32:51 +0000 (18:32 +0000)
Patch: Adam Simpkins

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1159734 13f79535-47bb-0310-9956-ffa450edef68

compiler/cpp/src/generate/t_cpp_generator.cc

index 2b5057d..0900ba7 100755 (executable)
@@ -1131,16 +1131,16 @@ void t_cpp_generator::generate_local_reflection(std::ofstream& out,
       indent() << local_reflection_name("specs", ttype);
   } else if (ttype->is_list()) {
     out << "," << endl <<
-      indent() << "&" << local_reflection_name("typespec", ((t_list*)ttype)->get_elem_type()) << "," << endl <<
+      indent() << "&" << local_reflection_name("typespec", ((t_list*)ttype)->get_elem_type(), true) << "," << endl <<
       indent() << "NULL";
   } else if (ttype->is_set()) {
     out << "," << endl <<
-      indent() << "&" << local_reflection_name("typespec", ((t_set*)ttype)->get_elem_type()) << "," << endl <<
+      indent() << "&" << local_reflection_name("typespec", ((t_set*)ttype)->get_elem_type(), true) << "," << endl <<
       indent() << "NULL";
   } else if (ttype->is_map()) {
     out << "," << endl <<
-      indent() << "&" << local_reflection_name("typespec", ((t_map*)ttype)->get_key_type()) << "," << endl <<
-      indent() << "&" << local_reflection_name("typespec", ((t_map*)ttype)->get_val_type());
+      indent() << "&" << local_reflection_name("typespec", ((t_map*)ttype)->get_key_type(), true) << "," << endl <<
+      indent() << "&" << local_reflection_name("typespec", ((t_map*)ttype)->get_val_type(), true);
   }
 
   out << ");" << endl << endl;