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 44ff97898f24e53b19babac6d343dac21e208634..5a573b65a269f16f3cd05995fe2583028ef6a338 100644 |
--- a/tools/json_schema_compiler/cpp_type_generator.py |
+++ b/tools/json_schema_compiler/cpp_type_generator.py |
@@ -112,7 +112,7 @@ class CppTypeGenerator(object): |
item_cpp_type = self.GetCppType(type_.item_type, is_in_container=True) |
cpp_type = 'std::vector<%s>' % cpp_util.PadForGenerics(item_cpp_type) |
elif type_.property_type == PropertyType.BINARY: |
- cpp_type = 'std::string' |
+ cpp_type = 'std::vector<char>' |
else: |
raise NotImplementedError('Cannot get type of %s' % type_.property_type) |