diff --git a/scripting/erm/ERMInterpreter.cpp b/scripting/erm/ERMInterpreter.cpp index 25a2212f0..f3bcdd878 100644 --- a/scripting/erm/ERMInterpreter.cpp +++ b/scripting/erm/ERMInterpreter.cpp @@ -801,14 +801,14 @@ namespace ERMConverter fmt % target % v.str() % opt; put(fmt.str()); } - + for(int i = paramIndex; i < trig.params->size(); i++) { opt = std::visit(VR_X(), (*trig.params)[i]); if(i > paramIndex) put(","); put(opt); } - + putLine(")"); } break; @@ -1183,7 +1183,7 @@ namespace ERMConverter } void operator()(const boost::recursive_wrapper & opt) const; - void operator()(const VSymbol & opt) const + void operator()(const VSymbol & opt) const { (*out) << "\"" << opt.text << "\""; } @@ -1589,7 +1589,7 @@ namespace VERMInterpreter struct OptionConverterVisitor { VOption operator()(const boost::recursive_wrapper& cmd) const - { + { return boost::recursive_wrapper(VNode(cmd.get())); } VOption operator()(const ERM::TSymbol & cmd) const @@ -1599,7 +1599,7 @@ namespace VERMInterpreter else return boost::recursive_wrapper(VNode(cmd)); } - VOption operator()(const char & cmd) const + VOption operator()(const char & cmd) const { return TLiteral(cmd); }