Two more loops.

This commit is contained in:
Jason Felds
2013-05-01 23:35:15 -04:00
parent d64dd6721d
commit cb6651f1fb
+4 -4
View File
@@ -87,8 +87,8 @@ void ScreenWithMenuElements::Init()
if( pFrame )
{
m_vDecorations = pFrame->GetChildren();
FOREACH( Actor*, m_vDecorations, child )
this->AddChild( *child );
for (Actor *child : m_vDecorations)
this->AddChild( child );
pFrame->RemoveAllChildren();
}
}
@@ -159,8 +159,8 @@ ScreenWithMenuElements::~ScreenWithMenuElements()
if( m_MemoryCardDisplay[p] != NULL )
SAFE_DELETE( m_MemoryCardDisplay[p] );
}
FOREACH( Actor*, m_vDecorations, actor )
delete *actor;
for (Actor *actor : m_vDecorations)
delete actor;
}
void ScreenWithMenuElements::SetHelpText( RString s )