diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-06-13 23:13:10 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-06-13 23:13:10 -0700 |
commit | 06462ccda6484b6b0cb7094398942f37defc098b (patch) | |
tree | 4b60f7e311a0b28a1d622bb67fff5845ff3f8dd7 | |
parent | 459c5c4dbda0048d1cf725f63450e47b29fc96cb (diff) | |
download | mu-06462ccda6484b6b0cb7094398942f37defc098b.tar.gz |
1559
-rw-r--r-- | 010vm.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/010vm.cc b/010vm.cc index 2b140cba..ecd2df23 100644 --- a/010vm.cc +++ b/010vm.cc @@ -196,12 +196,14 @@ reagent::reagent(string s) :original_string(s), value(0), initialized(false) { properties.at(0).second.push_back("dummy"); } } + reagent::reagent() :value(0), initialized(false) { // The first property is special, so ensure we always have it. // Other properties can be pushed back, but the first must always be // assigned to. properties.push_back(pair<string, vector<string> >("", vector<string>())); } + string reagent::to_string() const { if (!properties.at(0).second.empty() && properties.at(0).second.at(0) == "literal-string") { return emit_literal_string(name); |