Two more loops.
This commit is contained in:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user