From 32007a555cc2d10207e65a163f6ab809534d47e4 Mon Sep 17 00:00:00 2001 From: Mark Slee Date: Fri, 18 Jan 2008 00:57:59 +0000 Subject: [PATCH] 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 --- compiler/cpp/src/parse/t_enum.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/cpp/src/parse/t_enum.h b/compiler/cpp/src/parse/t_enum.h index 766c10020..810f3bee7 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); }