diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index 8664ac48a5..9ef158dfca 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -181,7 +181,7 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE, LPSTR CmdLine, int nCmdShow CStringArray 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 ); } } @@ -228,7 +228,7 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE, LPSTR CmdLine, int nCmdShow // CStringArray asPackagePaths; GetDirListing( "AutoInstall\\*.smzip", asPackagePaths, false, true ); - for( i=0; i=2 ? asMessageLines[1] : "") + (LPARAM)(LPCTSTR)(asMessageLines.size()>=2 ? asMessageLines[1] : "") ); SendDlgItemMessage( hWnd, IDC_STATIC_MESSAGE3, WM_SETTEXT, 0, - (LPARAM)(LPCTSTR)(asMessageLines.GetSize()>=3 ? asMessageLines[2] : "") + (LPARAM)(LPCTSTR)(asMessageLines.size()>=3 ? asMessageLines[2] : "") ); } break; @@ -916,7 +916,7 @@ void Update() ieArray.clear(); // empty the array INPUTFILTER->GetInputEvents( ieArray, fDeltaTime ); - for( int i=0; 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 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 ) )