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
@@ -181,7 +181,7 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE, LPSTR CmdLine, int nCmdShow
CStringArray Cmds; CStringArray Cmds;
SplitCommandLine(CmdLine, Cmds); SplitCommandLine(CmdLine, Cmds);
for(int i = 0; i < Cmds.GetSize(); ++i) for(unsigned i = 0; i < Cmds.size(); ++i)
{ {
if(Cmds[i] == "--fsck") { crash(); exit( 0 ); } if(Cmds[i] == "--fsck") { crash(); exit( 0 ); }
} }
@@ -228,7 +228,7 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE, LPSTR CmdLine, int nCmdShow
// //
CStringArray asPackagePaths; CStringArray asPackagePaths;
GetDirListing( "AutoInstall\\*.smzip", asPackagePaths, false, true ); GetDirListing( "AutoInstall\\*.smzip", asPackagePaths, false, true );
for( i=0; i<asPackagePaths.GetSize(); i++ ) for( i=0; i<asPackagePaths.size(); i++ )
{ {
CString sCommandLine = ssprintf( "smpackage.exe %s", asPackagePaths[i].GetString() ); CString sCommandLine = ssprintf( "smpackage.exe %s", asPackagePaths[i].GetString() );
@@ -446,14 +446,14 @@ BOOL CALLBACK LoadingWndProc( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam
IDC_STATIC_MESSAGE2, IDC_STATIC_MESSAGE2,
WM_SETTEXT, WM_SETTEXT,
0, 0,
(LPARAM)(LPCTSTR)(asMessageLines.GetSize()>=2 ? asMessageLines[1] : "") (LPARAM)(LPCTSTR)(asMessageLines.size()>=2 ? asMessageLines[1] : "")
); );
SendDlgItemMessage( SendDlgItemMessage(
hWnd, hWnd,
IDC_STATIC_MESSAGE3, IDC_STATIC_MESSAGE3,
WM_SETTEXT, WM_SETTEXT,
0, 0,
(LPARAM)(LPCTSTR)(asMessageLines.GetSize()>=3 ? asMessageLines[2] : "") (LPARAM)(LPCTSTR)(asMessageLines.size()>=3 ? asMessageLines[2] : "")
); );
} }
break; break;
@@ -916,7 +916,7 @@ void Update()
ieArray.clear(); // empty the array ieArray.clear(); // empty the array
INPUTFILTER->GetInputEvents( ieArray, fDeltaTime ); INPUTFILTER->GetInputEvents( ieArray, fDeltaTime );
for( int i=0; i<ieArray.GetSize(); i++ ) for( unsigned i=0; i<ieArray.size(); i++ )
{ {
DeviceInput DeviceI = (DeviceInput)ieArray[i]; DeviceInput DeviceI = (DeviceInput)ieArray[i];
InputEventType type = ieArray[i].type; InputEventType type = ieArray[i].type;
+5 -5
View File
@@ -50,7 +50,7 @@ void ThemeManager::GetAllThemeNames( CStringArray& AddTo )
GetDirListing( THEMES_DIR+"\\*", AddTo, true ); GetDirListing( THEMES_DIR+"\\*", AddTo, true );
// strip out the folder called "CVS" // 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") ) if( 0 == stricmp(AddTo[i],"cvs") )
AddTo.RemoveAt(i); 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 // strip out announcers that don't have the current game name in them
CString sGameName = GAMESTATE->GetCurrentGameDef()->m_szName; CString sGameName = GAMESTATE->GetCurrentGameDef()->m_szName;
sGameName.MakeLower(); sGameName.MakeLower();
for( int i=AddTo.GetSize()-1; i>=0; i-- ) for( unsigned i=AddTo.size()-1; i>=0; i-- )
{ {
CString sLowercaseVer = AddTo[i]; CString sLowercaseVer = AddTo[i];
sLowercaseVer.MakeLower(); sLowercaseVer.MakeLower();
@@ -77,7 +77,7 @@ bool ThemeManager::DoesThemeExist( CString sThemeName )
{ {
CStringArray asThemeNames; CStringArray asThemeNames;
GetAllThemeNames( 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]) ) if( 0==stricmp(sThemeName, asThemeNames[i]) )
return true; return true;
@@ -125,7 +125,7 @@ try_element_again:
// look for a redirect // look for a redirect
GetDirListing( sCurrentThemeDir + sAssetCategory+"\\"+sFileName + "*.redir", asPossibleElementFilePaths, false, true ); GetDirListing( sCurrentThemeDir + sAssetCategory+"\\"+sFileName + "*.redir", asPossibleElementFilePaths, false, true );
if( asPossibleElementFilePaths.GetSize() > 0 ) if( !asPossibleElementFilePaths.empty() )
{ {
CStdioFile file; CStdioFile file;
file.Open( asPossibleElementFilePaths[0], CFile::modeRead ); file.Open( asPossibleElementFilePaths[0], CFile::modeRead );
@@ -160,7 +160,7 @@ try_element_again:
GetDirListing( sDefaultThemeDir + sAssetCategory+"\\"+sFileName + asset_masks[i], GetDirListing( sDefaultThemeDir + sAssetCategory+"\\"+sFileName + asset_masks[i],
asPossibleElementFilePaths, false, true ); asPossibleElementFilePaths, false, true );
if( asPossibleElementFilePaths.GetSize() == 0 ) if( asPossibleElementFilePaths.empty() )
{ {
#ifdef _DEBUG #ifdef _DEBUG
switch( AfxMessageBox( ssprintf("The theme element %s/%s is missing.",sAssetCategory.GetString(),sFileName.GetString()), MB_ABORTRETRYIGNORE ) ) switch( AfxMessageBox( ssprintf("The theme element %s/%s is missing.",sAssetCategory.GetString(),sFileName.GetString()), MB_ABORTRETRYIGNORE ) )