Index: tools/json_schema_compiler/cpp_util.py |
diff --git a/tools/json_schema_compiler/cpp_util.py b/tools/json_schema_compiler/cpp_util.py |
index 0886826b7a99dd73bc5a505d49dce5200952cc65..9c9765c8bbf8cebb285b9457e9a320d6e5085e8a 100644 |
--- a/tools/json_schema_compiler/cpp_util.py |
+++ b/tools/json_schema_compiler/cpp_util.py |
@@ -45,7 +45,7 @@ def GetAsFundamentalValue(prop, src, dst): |
PropertyType.DOUBLE: '%s->GetAsDouble(%s)', |
}[prop.type_] % (src, dst) |
-def GetValueType(prop): |
+def GetValueType(type_): |
"""Returns the Value::Type corresponding to the model.PropertyType. |
""" |
return { |
@@ -54,10 +54,9 @@ def GetValueType(prop): |
PropertyType.BOOLEAN: 'Value::TYPE_BOOLEAN', |
PropertyType.DOUBLE: 'Value::TYPE_DOUBLE', |
PropertyType.ENUM: 'Value::TYPE_STRING', |
- PropertyType.REF: 'Value::TYPE_DICTIONARY', |
PropertyType.OBJECT: 'Value::TYPE_DICTIONARY', |
PropertyType.ARRAY: 'Value::TYPE_LIST', |
- }[prop.type_] |
+ }[type_] |
def GetParameterDeclaration(param, type_): |
"""Gets a parameter declaration of a given model.Property and its C++ |