about summary refs log tree commit diff stats
path: root/043new.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-10-26 20:00:38 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-10-26 20:02:18 -0700
commitae256ea13efc77cc767a658c6f61b12cd7461e21 (patch)
tree18dbcb26423b1d17d0639995c4bd29ec8f3d5c17 /043new.cc
parent7bba6e7bb7fd7bfdfc71626a34a08cb96a084b74 (diff)
downloadmu-ae256ea13efc77cc767a658c6f61b12cd7461e21.tar.gz
2283 - represent each /property as a tree
Diffstat (limited to '043new.cc')
-rw-r--r--043new.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/043new.cc b/043new.cc
index d33d685a..34ccf18b 100644
--- a/043new.cc
+++ b/043new.cc
@@ -319,8 +319,8 @@ recipe main [
 :(before "End NEW Transform Special-cases")
   if (!inst.ingredients.empty()
       && !inst.ingredients.at(0).properties.empty()
-      && !inst.ingredients.at(0).properties.at(0).second.empty()
-      && inst.ingredients.at(0).properties.at(0).second.at(0) == "literal-string") {
+      && inst.ingredients.at(0).properties.at(0).second
+      && inst.ingredients.at(0).properties.at(0).second->value == "literal-string") {
     // skip transform
     inst.ingredients.at(0).initialized = true;
     goto end_new_transform;
@@ -437,5 +437,5 @@ string read_mu_string(long long int address) {
 }
 
 bool is_mu_type_literal(reagent r) {
-  return is_literal(r) && !r.properties.empty() && !r.properties.at(0).second.empty() && r.properties.at(0).second.at(0) == "type";
+  return is_literal(r) && !r.properties.empty() && r.properties.at(0).second && r.properties.at(0).second->value == "type";
 }