Simple ones.

This commit is contained in:
Jason Felds
2013-04-30 23:04:28 -04:00
parent 438d7a5305
commit 58dbdd7d9e
+4 -4
View File
@@ -13,19 +13,19 @@ void LightsDriver::Create( const RString &sDrivers, vector<LightsDriver *> &Add
vector<RString> 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<LightsDriver *>( pRet );
ASSERT( pDriver != NULL );
LOG->Info( "Lights driver: %s", Driver->c_str() );
LOG->Info( "Lights driver: %s", Driver.c_str() );
Add.push_back( pDriver );
}
}