Code Review
/
common
/
thrift.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
9f0a786
)
THRIFT-897. compiler: Don't allow unqualified enum constant references
author
Bryan Duxbury
<bryanduxbury@apache.org>
Sun, 12 Sep 2010 15:22:21 +0000
(15:22 +0000)
committer
Bryan Duxbury
<bryanduxbury@apache.org>
Sun, 12 Sep 2010 15:22:21 +0000
(15:22 +0000)
Missed a spot.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@996325
13f79535
-47bb-0310-9956-
ffa450edef68
compiler/cpp/src/parse/t_scope.h
patch
|
blob
|
history
diff --git
a/compiler/cpp/src/parse/t_scope.h
b/compiler/cpp/src/parse/t_scope.h
index
cbb92cf
..
01894aa
100644
(file)
--- a/
compiler/cpp/src/parse/t_scope.h
+++ b/
compiler/cpp/src/parse/t_scope.h
@@
-161,7
+161,7
@@
class t_scope {
valstm << const_val->get_integer();
throw "Couldn't find a named value in enum " + tenum->get_name() + " for value " + valstm.str();
}
- const_val->set_identifier(enum_value->get_name());
+ const_val->set_identifier(
tenum->get_name() + "." +
enum_value->get_name());
const_val->set_enum(tenum);
}
}