row -> iRow

This commit is contained in:
Chris Danford
2005-07-13 19:01:42 +00:00
parent 505e835214
commit 4459393d84
17 changed files with 40 additions and 40 deletions
+9 -9
View File
@@ -85,14 +85,14 @@ void ScreenProfileOptions::Init()
SOUND->PlayMusic( THEME->GetPathS("ScreenMachineOptions","music") );
}
void ScreenProfileOptions::ImportOptions( int row, const vector<PlayerNumber> &vpns )
void ScreenProfileOptions::ImportOptions( int iRow, const vector<PlayerNumber> &vpns )
{
switch( row )
switch( iRow )
{
case PO_PLAYER1:
case PO_PLAYER2:
{
PlayerNumber pn = (PlayerNumber)(row - PO_PLAYER1);
PlayerNumber pn = (PlayerNumber)(iRow - PO_PLAYER1);
vector<CString> vsProfiles;
PROFILEMAN->GetLocalProfileIDs( vsProfiles );
@@ -101,25 +101,25 @@ void ScreenProfileOptions::ImportOptions( int row, const vector<PlayerNumber> &v
vsProfiles.end(),
PREFSMAN->GetDefaultLocalProfileID(pn).Get() );
if( iter != vsProfiles.end() )
m_pRows[row]->SetOneSharedSelection( iter - vsProfiles.begin() + 1 );
m_pRows[iRow]->SetOneSharedSelection( iter - vsProfiles.begin() + 1 );
}
break;
}
}
void ScreenProfileOptions::ExportOptions( int row, const vector<PlayerNumber> &vpns )
void ScreenProfileOptions::ExportOptions( int iRow, const vector<PlayerNumber> &vpns )
{
switch( row )
switch( iRow )
{
case PO_PLAYER1:
case PO_PLAYER2:
{
PlayerNumber pn = (PlayerNumber)(row - PO_PLAYER1);
PlayerNumber pn = (PlayerNumber)(iRow - PO_PLAYER1);
vector<CString> vsProfiles;
PROFILEMAN->GetLocalProfileIDs( vsProfiles );
if( m_pRows[row]->GetOneSharedSelection() > 0 )
PREFSMAN->GetDefaultLocalProfileID(pn).Set( vsProfiles[m_pRows[row]->GetOneSharedSelection()-1] );
if( m_pRows[iRow]->GetOneSharedSelection() > 0 )
PREFSMAN->GetDefaultLocalProfileID(pn).Set( vsProfiles[m_pRows[iRow]->GetOneSharedSelection()-1] );
else
PREFSMAN->GetDefaultLocalProfileID(pn).Set( "" );
}