From: Mark Slee Date: Fri, 18 Jan 2008 00:57:59 +0000 (+0000) Subject: Fix set_name compiler method signature X-Git-Tag: 0.2.0~1038 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=32007a555cc2d10207e65a163f6ab809534d47e4;p=common%2Fthrift.git 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 --- diff --git a/compiler/cpp/src/parse/t_enum.h b/compiler/cpp/src/parse/t_enum.h index 766c1002..810f3bee 100644 --- a/compiler/cpp/src/parse/t_enum.h +++ b/compiler/cpp/src/parse/t_enum.h @@ -20,10 +20,10 @@ class t_enum : public t_type { t_enum(t_program* program) : t_type(program) {} - void set_name(std::string name) { + void set_name(const std::string& name) { name_ = name; } - + void append(t_enum_value* constant) { constants_.push_back(constant); }