Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 27bda76

Browse files
[[ ExecValue-ization ]] ExecValue now used where it's possible, to avoid useless conversions from any number to string
1 parent c4d3c61 commit 27bda76

File tree

16 files changed

+706
-292
lines changed

16 files changed

+706
-292
lines changed

engine/src/cmdse.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,12 +1099,12 @@ void MCDispatchCmd::exec_ctxt(MCExecContext &ctxt)
10991099

11001100
if (t_var == NULL)
11011101
{
1102-
MCAutoValueRef t_value;
1102+
MCExecValue t_value;
11031103
tptr -> clear_argument();
11041104

11051105
do
11061106
{
1107-
if (!(t_success = tptr->eval(ctxt, &t_value)))
1107+
if (!(t_success = tptr->eval_ctxt(ctxt, t_value)))
11081108
t_can_debug = MCB_error(ctxt, line, pos, EE_STATEMENT_BADPARAM);
11091109
ctxt.IgnoreLastError();
11101110
}
@@ -1116,7 +1116,7 @@ void MCDispatchCmd::exec_ctxt(MCExecContext &ctxt)
11161116
return;
11171117
}
11181118

1119-
tptr->setvalueref_argument(*t_value);
1119+
tptr->give_exec_argument(t_value);
11201120
}
11211121
else
11221122
tptr->set_argument_var(t_var);

0 commit comments

Comments
 (0)