Index: tools/json_schema_compiler/feature_compiler.py |
diff --git a/tools/json_schema_compiler/feature_compiler.py b/tools/json_schema_compiler/feature_compiler.py |
index 7970d472ea0ca5435b8189bff3be48113422e20d..6afe9eac23af11f3d67187ea917be46a586c36ea 100644 |
--- a/tools/json_schema_compiler/feature_compiler.py |
+++ b/tools/json_schema_compiler/feature_compiler.py |
@@ -498,7 +498,7 @@ class FeatureCompiler(object): |
c.Append('feature->set_name("%s");' % k) |
else: |
c.Concat(feature.GetCode(self._feature_class)) |
- c.Append('features_["%s"] = std::move(feature);' % k) |
+ c.Append('AddFeature("%s", std::move(feature));' % k) |
c.Eblock('}') |
c.Eblock('}') |
return c |