some more s/GetSize/size/

This commit is contained in:
Glenn Maynard
2002-10-31 02:12:14 +00:00
parent 8e18d84d10
commit 040da1a6d4
2 changed files with 10 additions and 10 deletions
+5 -5
View File
@@ -50,7 +50,7 @@ void ThemeManager::GetAllThemeNames( CStringArray& AddTo )
GetDirListing( THEMES_DIR+"\\*", AddTo, true );
// strip out the folder called "CVS"
for( int i=AddTo.GetSize()-1; i>=0; i-- )
for( int i=AddTo.size()-1; i >= 0; i-- )
if( 0 == stricmp(AddTo[i],"cvs") )
AddTo.RemoveAt(i);
}
@@ -63,7 +63,7 @@ void ThemeManager::GetThemeNamesForCurGame( CStringArray& AddTo )
// strip out announcers that don't have the current game name in them
CString sGameName = GAMESTATE->GetCurrentGameDef()->m_szName;
sGameName.MakeLower();
for( int i=AddTo.GetSize()-1; i>=0; i-- )
for( unsigned i=AddTo.size()-1; i>=0; i-- )
{
CString sLowercaseVer = AddTo[i];
sLowercaseVer.MakeLower();
@@ -77,7 +77,7 @@ bool ThemeManager::DoesThemeExist( CString sThemeName )
{
CStringArray asThemeNames;
GetAllThemeNames( asThemeNames );
for( int i=0; i<asThemeNames.GetSize(); i++ )
for( unsigned i=0; i<asThemeNames.size(); i++ )
{
if( 0==stricmp(sThemeName, asThemeNames[i]) )
return true;
@@ -125,7 +125,7 @@ try_element_again:
// look for a redirect
GetDirListing( sCurrentThemeDir + sAssetCategory+"\\"+sFileName + "*.redir", asPossibleElementFilePaths, false, true );
if( asPossibleElementFilePaths.GetSize() > 0 )
if( !asPossibleElementFilePaths.empty() )
{
CStdioFile file;
file.Open( asPossibleElementFilePaths[0], CFile::modeRead );
@@ -160,7 +160,7 @@ try_element_again:
GetDirListing( sDefaultThemeDir + sAssetCategory+"\\"+sFileName + asset_masks[i],
asPossibleElementFilePaths, false, true );
if( asPossibleElementFilePaths.GetSize() == 0 )
if( asPossibleElementFilePaths.empty() )
{
#ifdef _DEBUG
switch( AfxMessageBox( ssprintf("The theme element %s/%s is missing.",sAssetCategory.GetString(),sFileName.GetString()), MB_ABORTRETRYIGNORE ) )