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