Use the old style loops.
This commit is contained in:
@@ -337,7 +337,7 @@ void MemoryCardManager::UpdateAssignments()
|
|||||||
if( assigned_device.IsBlank() ) // no card assigned to this player
|
if( assigned_device.IsBlank() ) // no card assigned to this player
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
FOREACH( UsbStorageDevice, vUnassignedDevices, d )
|
for (vector<UsbStorageDevice>::iterator d = vUnassignedDevices.begin(); d != vUnassignedDevices.end(); ++d)
|
||||||
{
|
{
|
||||||
if( *d == assigned_device )
|
if( *d == assigned_device )
|
||||||
{
|
{
|
||||||
@@ -373,7 +373,7 @@ void MemoryCardManager::UpdateAssignments()
|
|||||||
|
|
||||||
LOG->Trace( "Looking for a card for Player %d", p+1 );
|
LOG->Trace( "Looking for a card for Player %d", p+1 );
|
||||||
|
|
||||||
FOREACH( UsbStorageDevice, vUnassignedDevices, d )
|
for (vector<UsbStorageDevice>::iterator d = vUnassignedDevices.begin(); d != vUnassignedDevices.end(); ++d)
|
||||||
{
|
{
|
||||||
// search for card dir match
|
// search for card dir match
|
||||||
if( !m_sMemoryCardOsMountPoint[p].Get().empty() &&
|
if( !m_sMemoryCardOsMountPoint[p].Get().empty() &&
|
||||||
|
|||||||
Reference in New Issue
Block a user