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 ) if( pFrame )
{ {
m_vDecorations = pFrame->GetChildren(); m_vDecorations = pFrame->GetChildren();
FOREACH( Actor*, m_vDecorations, child ) for (Actor *child : m_vDecorations)
this->AddChild( *child ); this->AddChild( child );
pFrame->RemoveAllChildren(); pFrame->RemoveAllChildren();
} }
} }
@@ -159,8 +159,8 @@ ScreenWithMenuElements::~ScreenWithMenuElements()
if( m_MemoryCardDisplay[p] != NULL ) if( m_MemoryCardDisplay[p] != NULL )
SAFE_DELETE( m_MemoryCardDisplay[p] ); SAFE_DELETE( m_MemoryCardDisplay[p] );
} }
FOREACH( Actor*, m_vDecorations, actor ) for (Actor *actor : m_vDecorations)
delete *actor; delete actor;
} }
void ScreenWithMenuElements::SetHelpText( RString s ) void ScreenWithMenuElements::SetHelpText( RString s )