diff --git a/src/ScreenOptionsMasterPrefs.cpp b/src/ScreenOptionsMasterPrefs.cpp index 81fc5ca33f..e992b3e25d 100644 --- a/src/ScreenOptionsMasterPrefs.cpp +++ b/src/ScreenOptionsMasterPrefs.cpp @@ -163,9 +163,9 @@ static void GameChoices( vector &out ) { vector 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 &out ) { THEME->GetSelectableThemeNames( out ); - FOREACH( RString, out, s ) - *s = THEME->GetThemeDisplayName( *s ); + for (RString &s : out) + s = THEME->GetThemeDisplayName( s ); } static void DisplayResolutionChoices( vector &out )