mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 10:48:51 +00:00
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:
parent
4b3381314f
commit
32007a555c
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user