Skip to content

Commit 6837fb5

Browse files
committed
[[ Cleanup ]] engine: Add some disambiguating parentheses and braces.
1 parent cb67f2d commit 6837fb5

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

engine/src/cmdse.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3254,7 +3254,7 @@ void MCStop::exec_ctxt(MCExecContext &ctxt)
32543254

32553255
if (target != NULL)
32563256
if (!target->getobj(ctxt, optr, parid, True)
3257-
|| optr == NULL && mode != SC_EDITING)
3257+
|| (optr == NULL && mode != SC_EDITING))
32583258
{
32593259
ctxt . LegacyThrow(EE_STOP_BADTARGET);
32603260
return;

engine/src/cmdsf.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3131,11 +3131,12 @@ Parse_stat MCOpen::parse(MCScriptPoint &sp)
31313131
}
31323132

31333133
if (sp.skip_token(SP_SUGAR, TT_PREP, PT_WITHOUT) == PS_NORMAL)
3134+
{
31343135
if (sp.skip_token(SP_SSL, TT_UNDEFINED, SSL_VERIFICATION) == PS_NORMAL)
31353136
secureverify = False;
31363137
else
3137-
MCperror->add
3138-
(PE_OPEN_BADMESSAGE, sp);
3138+
MCperror->add (PE_OPEN_BADMESSAGE, sp);
3139+
}
31393140
return PS_NORMAL;
31403141
}
31413142

engine/src/cmdss.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ Parse_stat MCGo::parse(MCScriptPoint &sp)
147147
while (True)
148148
{
149149
if (sp.next(type) != PS_NORMAL)
150+
{
150151
if (need_target)
151152
{
152153
if (ct_class(oterm) == CT_ORDINAL)
@@ -165,6 +166,7 @@ Parse_stat MCGo::parse(MCScriptPoint &sp)
165166
}
166167
else
167168
break;
169+
}
168170
if (type == ST_ID && (sp.lookup(SP_FACTOR, te) == PS_NORMAL
169171
|| sp.lookup(SP_GO, te) == PS_NORMAL))
170172
{
@@ -2832,7 +2834,7 @@ void MCSubwindow::exec_ctxt(MCExecContext &ctxt)
28322834
// Need to have a second MCExecContext as getobj may throw a non-fatal error
28332835
MCExecContext ctxt2(ctxt);
28342836
if (!target -> getobj(ctxt2, optr, parid, True)
2835-
|| optr->gettype() != CT_BUTTON && optr->gettype() != CT_STACK)
2837+
|| (optr->gettype() != CT_BUTTON && optr->gettype() != CT_STACK))
28362838
{
28372839
MCerrorlock--;
28382840
if (!ctxt . EvalExprAsNameRef(target, EE_SUBWINDOW_BADEXP, &optr_name))

0 commit comments

Comments
 (0)