Merging Jake Luciani's latest perl code gen fixes
Reviewed By: dreiss
Test Plan: Watch for any weirdness on Thrift code gen, perl specific
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665206 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/compiler/cpp/src/parse/t_program.h b/compiler/cpp/src/parse/t_program.h
index f54ed71..d516617 100644
--- a/compiler/cpp/src/parse/t_program.h
+++ b/compiler/cpp/src/parse/t_program.h
@@ -149,17 +149,17 @@
void set_ruby_namespace(std::string ruby_namespace) {
ruby_namespace_ = ruby_namespace;
}
-
+
const std::string& get_ruby_namespace() const {
return ruby_namespace_;
}
- void set_perl_namespace(std::string perl_namespace) {
- perl_namespace_ = perl_namespace;
+ void set_perl_package(std::string perl_package) {
+ perl_package_ = perl_package;
}
- const std::string& get_perl_namespace() const {
- return perl_namespace_;
+ const std::string& get_perl_package() const {
+ return perl_package_;
}
private:
@@ -206,7 +206,7 @@
std::string ruby_namespace_;
// Perl namespace
- std::string perl_namespace_;
+ std::string perl_package_;
};