From 3d0abc36a9921fb42601a0738bf686a1acce0798 Mon Sep 17 00:00:00 2001 From: Bryan Duxbury Date: Tue, 3 Feb 2009 19:18:57 +0000 Subject: [PATCH] THRIFT-132. ruby: Ruby generator should use ::Thrift::Foo namespace form All of the Thrift library includes now prefix with ::. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@740377 13f79535-47bb-0310-9956-ffa450edef68 --- compiler/cpp/src/generate/t_rb_generator.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/cpp/src/generate/t_rb_generator.cc b/compiler/cpp/src/generate/t_rb_generator.cc index 83c69efe..ee859535 100644 --- a/compiler/cpp/src/generate/t_rb_generator.cc +++ b/compiler/cpp/src/generate/t_rb_generator.cc @@ -466,7 +466,7 @@ void t_rb_generator::generate_rb_struct(std::ofstream& out, t_struct* tstruct, b out << endl; indent_up(); - indent(out) << "include Thrift::Struct" << endl; + indent(out) << "include ::Thrift::Struct" << endl; if (is_exception) { generate_rb_simple_exception_constructor(out, tstruct); @@ -714,7 +714,7 @@ void t_rb_generator::generate_service_client(t_service* tservice) { indent_up(); indent(f_service_) << - "include Thrift::Client" << endl << endl; + "include ::Thrift::Client" << endl << endl; // Generate client method implementations vector functions = tservice->get_functions(); @@ -847,7 +847,7 @@ void t_rb_generator::generate_service_server(t_service* tservice) { indent_up(); f_service_ << - indent() << "include Thrift::Processor" << endl << + indent() << "include ::Thrift::Processor" << endl << endl; // Generate the process subfunctions -- 2.17.1