Fix enum value lookups in C++
authorDavid Reiss <dreiss@apache.org>
Mon, 13 Sep 2010 17:32:14 +0000 (17:32 +0000)
committerDavid Reiss <dreiss@apache.org>
Mon, 13 Sep 2010 17:32:14 +0000 (17:32 +0000)
commitbdd6261b3336cbb7f3df2829e0c001f6591bb224
tree071104fa370723093a3d41f98a5d4ead9f9f68ad
parent8d7667c27f1b116386d7970a130439f02ac4491d
Fix enum value lookups in C++

The recent enum change was causing enums to break if used as constant
values by the C++ generator.  The problem was that we were searching for
the fully-qualified constant name (enum_name.VALUE_NAME) in the enum
values.  This didn't affect Java because it just uses symbolic names in
the generated code.  Fix it by grabbing the base name before doing the
search.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@996610 13f79535-47bb-0310-9956-ffa450edef68
compiler/cpp/src/parse/t_const_value.h