Fix set_name compiler method signature

Reviewed By: kholst

Other Notes: Follow up from 78130


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665434 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Slee 2008-01-18 00:57:59 +00:00
parent 4b3381314f
commit 32007a555c

View File

@ -20,10 +20,10 @@ class t_enum : public t_type {
t_enum(t_program* program) : t_enum(t_program* program) :
t_type(program) {} t_type(program) {}
void set_name(std::string name) { void set_name(const std::string& name) {
name_ = name; name_ = name;
} }
void append(t_enum_value* constant) { void append(t_enum_value* constant) {
constants_.push_back(constant); constants_.push_back(constant);
} }