diff --git a/src/arch/Lights/LightsDriver.cpp b/src/arch/Lights/LightsDriver.cpp index 0d48c59cad..0c19ed725b 100644 --- a/src/arch/Lights/LightsDriver.cpp +++ b/src/arch/Lights/LightsDriver.cpp @@ -13,19 +13,19 @@ void LightsDriver::Create( const RString &sDrivers, vector &Add vector asDriversToTry; split( sDrivers, ",", asDriversToTry, true ); - FOREACH_CONST( RString, asDriversToTry, Driver ) + for (RString const &Driver : asDriversToTry) { - RageDriver *pRet = m_pDriverList.Create( *Driver ); + RageDriver *pRet = m_pDriverList.Create( Driver ); if( pRet == NULL ) { - LOG->Trace( "Unknown lights driver: %s", Driver->c_str() ); + LOG->Trace( "Unknown lights driver: %s", Driver.c_str() ); continue; } LightsDriver *pDriver = dynamic_cast( pRet ); ASSERT( pDriver != NULL ); - LOG->Info( "Lights driver: %s", Driver->c_str() ); + LOG->Info( "Lights driver: %s", Driver.c_str() ); Add.push_back( pDriver ); } }