diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-10-26 20:00:38 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-10-26 20:02:18 -0700 |
commit | ae256ea13efc77cc767a658c6f61b12cd7461e21 (patch) | |
tree | 18dbcb26423b1d17d0639995c4bd29ec8f3d5c17 /048check_type_by_name.cc | |
parent | 7bba6e7bb7fd7bfdfc71626a34a08cb96a084b74 (diff) | |
download | mu-ae256ea13efc77cc767a658c6f61b12cd7461e21.tar.gz |
2283 - represent each /property as a tree
Diffstat (limited to '048check_type_by_name.cc')
-rw-r--r-- | 048check_type_by_name.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/048check_type_by_name.cc b/048check_type_by_name.cc index 7e5c478b..e6bedbc9 100644 --- a/048check_type_by_name.cc +++ b/048check_type_by_name.cc @@ -56,8 +56,8 @@ void deduce_missing_type(map<string, type_tree*>& metadata, reagent& x) { if (x.type) return; if (metadata.find(x.name) == metadata.end()) return; x.type = new type_tree(*metadata[x.name]); - assert(x.properties.at(0).second.empty()); - x.properties.at(0).second.push_back("as-before"); + assert(!x.properties.at(0).second); + x.properties.at(0).second = new string_tree("as-before"); } :(scenario transform_fills_in_missing_types_in_product) |