From 5781c827e1fddbd11a223685dcc13c26bf0f98b4 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Wed, 1 May 2013 22:39:10 -0400 Subject: [PATCH] Two loops. --- src/InputQueue.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/InputQueue.cpp b/src/InputQueue.cpp index 7811cfc5a9..b692c7f0cc 100644 --- a/src/InputQueue.cpp +++ b/src/InputQueue.cpp @@ -167,11 +167,11 @@ bool InputQueueCode::Load( RString sButtonsNames ) vector asPresses; split( sButtonsNames, ",", asPresses, false ); - FOREACH( RString, asPresses, sPress ) + for (RString &sPress : asPresses) { vector asButtonNames; - split( *sPress, "-", asButtonNames, false ); + split( sPress, "-", asButtonNames, false ); if( asButtonNames.size() < 1 ) { @@ -181,10 +181,8 @@ bool InputQueueCode::Load( RString sButtonsNames ) } m_aPresses.push_back( ButtonPress() ); - for( unsigned i=0; i