fix compile

This commit is contained in:
Glenn Maynard
2003-04-14 04:35:19 +00:00
parent 2f11934b8c
commit fb048fc9c7
2 changed files with 6 additions and 4 deletions
+3 -2
View File
@@ -166,7 +166,8 @@ void AnnouncerManager::NextAnnouncer()
SwitchAnnouncer( as[0] );
else
{
for( unsigned i=0; i<as.size(); i++ )
unsigned i;
for( i=0; i<as.size(); i++ )
if( as[i].CompareNoCase(m_sCurAnnouncerName)==0 )
break;
if( i==as.size()-1 )
@@ -177,4 +178,4 @@ void AnnouncerManager::NextAnnouncer()
SwitchAnnouncer( as[iNewIndex] );
}
}
}
}
+3 -2
View File
@@ -368,9 +368,10 @@ void ThemeManager::NextTheme()
{
CStringArray as;
GetThemeNames( as );
for( unsigned i=0; i<as.size(); i++ )
unsigned i;
for( i=0; i<as.size(); i++ )
if( as[i].CompareNoCase(m_sCurThemeName)==0 )
break;
int iNewIndex = (i+1)%as.size();
SwitchTheme( as[iNewIndex] );
}
}