From 3f3ea20a3a8da4130e06d138e34e6bce7e979a1c Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Wed, 1 May 2013 22:16:53 -0400 Subject: [PATCH] One loop. --- src/PlayerOptions.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/PlayerOptions.cpp b/src/PlayerOptions.cpp index 26d246566f..c8c66a2e3e 100644 --- a/src/PlayerOptions.cpp +++ b/src/PlayerOptions.cpp @@ -271,11 +271,11 @@ void PlayerOptions::FromString( const RString &sMultipleMods ) vector vs; split( sTemp, ",", vs, true ); RString sThrowAway; - FOREACH( RString, vs, s ) + for (RString &s : vs) { - if (!FromOneModString( *s, sThrowAway )) + if (!FromOneModString( s, sThrowAway )) { - LOG->Trace( "Attempted to load a non-existing mod \'%s\' for the Player. Ignoring.", (*s).c_str() ); + LOG->Trace( "Attempted to load a non-existing mod \'%s\' for the Player. Ignoring.", s.c_str() ); } } }