@@ -156,7 +156,6 @@ MCConvert::~MCConvert()
156156{
157157 delete container;
158158 delete source;
159- delete it;
160159}
161160
162161Parse_stat MCConvert::parse (MCScriptPoint &sp)
@@ -177,7 +176,6 @@ Parse_stat MCConvert::parse(MCScriptPoint &sp)
177176 (PE_CONVERT_NOCONTAINER , sp);
178177 return PS_ERROR ;
179178 }
180- getit (sp, it);
181179 }
182180 else
183181 MCerrorlock--;
@@ -318,12 +316,11 @@ Exec_stat MCConvert::exec(MCExecPoint &ep)
318316 return ES_NORMAL ;
319317 }
320318 Exec_stat stat;
321- if (it != NULL )
322- stat = it->set
323- (ep);
319+ if (container == NULL )
320+ stat = ep . getit () -> set (ep);
324321 else
325- stat = container->set
326- (ep, PT_INTO );
322+ stat = container->set (ep, PT_INTO );
323+
327324 if (stat != ES_NORMAL )
328325 {
329326 MCeerror->add
@@ -334,7 +331,7 @@ Exec_stat MCConvert::exec(MCExecPoint &ep)
334331#endif /* MCConvert */
335332
336333
337- MCExecContext ctxt (ep, it );
334+ MCExecContext ctxt (ep);
338335 MCAutoStringRef t_input;
339336 MCAutoStringRef t_output;
340337 if (container != NULL )
@@ -355,8 +352,8 @@ Exec_stat MCConvert::exec(MCExecPoint &ep)
355352 }
356353 /* UNCHECKED */ ep . copyasstringref (&t_input);
357354
358- if (it ! = NULL )
359- MCDateTimeExecConvertIntoIt (ctxt, *t_input, fform, fsform, pform, sform, &t_output );
355+ if (container = = NULL )
356+ MCDateTimeExecConvertIntoIt (ctxt, *t_input, fform, fsform, pform, sform);
360357 else
361358 {
362359 MCDateTimeExecConvert (ctxt, *t_input, fform, fsform, pform, sform, &t_output);
@@ -377,7 +374,7 @@ void MCConvert::compile(MCSyntaxFactoryRef ctxt)
377374{
378375 MCSyntaxFactoryBeginStatement (ctxt, line, pos);
379376
380- if (it ! = nil)
377+ if (container = = nil)
381378 source -> compile (ctxt);
382379 else
383380 container -> compile_inout (ctxt);
@@ -387,7 +384,7 @@ void MCConvert::compile(MCSyntaxFactoryRef ctxt)
387384 MCSyntaxFactoryEvalConstantInt (ctxt, pform);
388385 MCSyntaxFactoryEvalConstantInt (ctxt, sform);
389386
390- if (it ! = nil)
387+ if (container = = nil)
391388 MCSyntaxFactoryExecMethod (ctxt, kMCDateTimeExecConvertIntoItMethodInfo );
392389 else
393390 MCSyntaxFactoryExecMethodWithArgs (ctxt, kMCDateTimeExecConvertMethodInfo , 0 , 1 , 2 , 3 , 4 , 0 );
@@ -996,7 +993,6 @@ void MCFind::compile(MCSyntaxFactoryRef ctxt)
996993MCGet::~MCGet ()
997994{
998995 delete value;
999- delete it;
1000996}
1001997
1002998Parse_stat MCGet::parse (MCScriptPoint &sp)
@@ -1008,7 +1004,6 @@ Parse_stat MCGet::parse(MCScriptPoint &sp)
10081004 (PE_GET_BADEXP , sp);
10091005 return PS_ERROR ;
10101006 }
1011- getit (sp, it);
10121007 return PS_NORMAL ;
10131008}
10141009
@@ -1020,7 +1015,7 @@ Exec_stat MCGet::exec(MCExecPoint &ep)
10201015 MCeerror->add (EE_GET_BADEXP , line, pos);
10211016 return ES_ERROR ;
10221017 }
1023- if (it ->set (ep) != ES_NORMAL )
1018+ if (ep. getit () ->set (ep) != ES_NORMAL )
10241019 {
10251020 MCeerror->add (EE_GET_CANTSET , line, pos, ep.getsvalue ());
10261021 return ES_ERROR ;
@@ -1036,7 +1031,7 @@ Exec_stat MCGet::exec(MCExecPoint &ep)
10361031 }
10371032 /* UNCHECKED */ ep . copyasvalueref (&t_value);
10381033
1039- MCExecContext ctxt (ep, it );
1034+ MCExecContext ctxt (ep);
10401035 MCEngineExecGet (ctxt, *t_value);
10411036 if (!ctxt . HasError ())
10421037 return ES_NORMAL ;
@@ -2992,17 +2987,13 @@ MCResolveImage::~MCResolveImage(void)
29922987{
29932988 delete m_relative_object;
29942989 delete m_id_or_name;
2995- delete m_it;
29962990}
29972991
29982992Parse_stat MCResolveImage::parse (MCScriptPoint &p_sp)
29992993{
30002994 Parse_stat t_stat;
30012995 t_stat = PS_NORMAL ;
30022996
3003- // Fetch a reference to 'it'
3004- getit (p_sp, m_it);
3005-
30062997 if (t_stat == PS_NORMAL )
30072998 t_stat = p_sp.skip_token (SP_FACTOR , TT_CHUNK , CT_IMAGE );
30082999
@@ -3083,7 +3074,7 @@ Exec_stat MCResolveImage::exec(MCExecPoint &p_ep)
30833074 }
30843075
30853076 if (t_stat == ES_NORMAL )
3086- t_stat = m_it -> set (p_ep);
3077+ t_stat = p_ep. getit () -> set (p_ep);
30873078
30883079 return t_stat;
30893080
0 commit comments