diff --git a/src/OptionsList.cpp b/src/OptionsList.cpp index 4c4caf2746..7b16875348 100644 --- a/src/OptionsList.cpp +++ b/src/OptionsList.cpp @@ -197,8 +197,8 @@ void OptionsList::Load( RString sType, PlayerNumber pn ) vector asDirectLines; split( DIRECT_LINES, ",", asDirectLines, true ); - FOREACH( RString, asDirectLines, s ) - m_setDirectRows.insert( *s ); + for (RString const &s : asDirectLines) + m_setDirectRows.insert( s ); vector setToLoad; split( TOP_MENUS, ",", setToLoad );