From ae256ea13efc77cc767a658c6f61b12cd7461e21 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 26 Oct 2015 20:00:38 -0700 Subject: 2283 - represent each /property as a tree --- 054dilated_reagent.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to '054dilated_reagent.cc') diff --git a/054dilated_reagent.cc b/054dilated_reagent.cc index af7e5820..70217ee4 100644 --- a/054dilated_reagent.cc +++ b/054dilated_reagent.cc @@ -80,13 +80,11 @@ if (s.at(0) == '{') { string key = next_dilated_word(in); if (key.empty()) continue; string value = next_dilated_word(in); - vector values; - values.push_back(value); - properties.push_back(pair >(key, values)); + properties.push_back(pair(key, new string_tree(value))); } // structures for the first row of properties name = properties.at(0).first; - string type_name = properties.at(0).second.at(0); + string type_name = properties.at(0).second->value; if (Type_ordinal.find(type_name) == Type_ordinal.end()) { // this type can't be an integer Type_ordinal[type_name] = Next_type_ordinal++; -- cgit 1.4.1-2-gfad0