These loops are handled.

This commit is contained in:
Jason Felds
2013-05-01 23:14:23 -04:00
parent 2baca75e2b
commit 66ee0769cc
+4 -4
View File
@@ -163,9 +163,9 @@ static void GameChoices( vector<RString> &out )
{
vector<const Game*> aGames;
GAMEMAN->GetEnabledGames( aGames );
FOREACH( const Game*, aGames, g )
for (Game const *g : aGames)
{
RString sGameName = (*g)->m_szName;
RString sGameName = g->m_szName;
out.push_back( sGameName );
}
}
@@ -248,8 +248,8 @@ static void Language( int &sel, bool ToSel, const ConfOption *pConfOption )
static void ThemeChoices( vector<RString> &out )
{
THEME->GetSelectableThemeNames( out );
FOREACH( RString, out, s )
*s = THEME->GetThemeDisplayName( *s );
for (RString &s : out)
s = THEME->GetThemeDisplayName( s );
}
static void DisplayResolutionChoices( vector<RString> &out )