about summary refs log tree commit diff stats
path: root/010vm.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-05-25 18:56:37 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-05-25 18:56:37 -0700
commit9c30b38376e66442e6fde85ef54b959dc548bfe3 (patch)
tree9201f3bdcb7f3f96c6273e472286f52cc86f9559 /010vm.cc
parent67a180e330687d6252b22b6211e8da3ce608add0 (diff)
downloadmu-9c30b38376e66442e6fde85ef54b959dc548bfe3.tar.gz
3008
Diffstat (limited to '010vm.cc')
-rw-r--r--010vm.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/010vm.cc b/010vm.cc
index ee18a171..67dd0e1a 100644
--- a/010vm.cc
+++ b/010vm.cc
@@ -57,7 +57,7 @@ struct reagent {
   double value;
   bool initialized;
   // End reagent Fields
-  reagent(string s);
+  reagent(const string& s);
   reagent() :type(NULL), value(0), initialized(false) {}
   ~reagent();
   void clear();
@@ -258,7 +258,7 @@ void instruction::clear() { is_label=false; label.clear(); name.clear(); old_nam
 bool instruction::is_empty() { return !is_label && name.empty(); }
 
 // Reagents have the form <name>:<type>:<type>:.../<property>/<property>/...
-reagent::reagent(string s) :original_string(s), type(NULL), value(0), initialized(false) {
+reagent::reagent(const string& s) :original_string(s), type(NULL), value(0), initialized(false) {
   // Parsing reagent(string s)
   istringstream in(s);
   in >> std::noskipws;