Index: tools/json_schema_compiler/cpp_type_generator.py |
diff --git a/tools/json_schema_compiler/cpp_type_generator.py b/tools/json_schema_compiler/cpp_type_generator.py |
index 4c0306d18bb04ca68c8161ec5a4040ff1743d1b2..d485b46c5cdea81ca443c564e34199efd8bfcd60 100644 |
--- a/tools/json_schema_compiler/cpp_type_generator.py |
+++ b/tools/json_schema_compiler/cpp_type_generator.py |
@@ -65,7 +65,7 @@ class CppTypeGenerator(object): |
e.g VAR_STRING |
""" |
value = '%s_%s' % (self.FollowRef(type_).unix_name.upper(), |
- cpp_util.Classname(enum_value.upper())) |
+ cpp_util.Classname(enum_value.name.upper())) |
# To avoid collisions with built-in OS_* preprocessor definitions, we add a |
# trailing slash to enum names that start with OS_. |
if value.startswith("OS_"): |