Two loops here.

This commit is contained in:
Jason Felds
2013-05-01 22:34:05 -04:00
parent 93ab2afccc
commit fb792a5560
+4 -4
View File
@@ -123,9 +123,9 @@ void SongOptions::GetMods( vector<RString> &AddTo ) const
void SongOptions::GetLocalizedMods( vector<RString> &v ) const void SongOptions::GetLocalizedMods( vector<RString> &v ) const
{ {
GetMods( v ); GetMods( v );
FOREACH( RString, v, s ) for (RString &s : v)
{ {
*s = CommonMetrics::LocalizeOptionItem( *s, true ); s = CommonMetrics::LocalizeOptionItem( s, true );
} }
} }
@@ -152,9 +152,9 @@ void SongOptions::FromString( const RString &sMultipleMods )
vector<RString> vs; vector<RString> vs;
split( sTemp, ",", vs, true ); split( sTemp, ",", vs, true );
RString sThrowAway; RString sThrowAway;
FOREACH( RString, vs, s ) for (RString &s : vs)
{ {
FromOneModString( *s, sThrowAway ); FromOneModString( s, sThrowAway );
} }
} }