diff --git a/stepmania/src/IniFile.cpp b/stepmania/src/IniFile.cpp index ce879e2ed6..c1fa68b13c 100644 --- a/stepmania/src/IniFile.cpp +++ b/stepmania/src/IniFile.cpp @@ -86,12 +86,12 @@ bool IniFile::ReadFile() void IniFile::WriteFile() { FILE* fp = fopen( path, "w" ); - for (int keynum = 0; keynum <= names.GetUpperBound(); keynum++) + for (unsigned keynum = 0; keynum < names.size(); keynum++) { if (keys[keynum].names.GetSize() != 0) { fprintf( fp, "[%s]\n", names[keynum] ); - for (int valuenum = 0; valuenum <= keys[keynum].names.GetUpperBound(); valuenum++) + for (unsigned valuenum = 0; valuenum < keys[keynum].names.size(); valuenum++) fprintf( fp, "%s=%s\n", keys[keynum].names[valuenum], keys[keynum].values[valuenum] ); fprintf( fp, "\n" ); } @@ -102,8 +102,8 @@ void IniFile::WriteFile() //deletes all stored ini data void IniFile::Reset() { - keys.SetSize(0); - names.SetSize(0); + keys.clear(); + names.clear(); } //returns number of keys currently in the ini diff --git a/stepmania/src/MusicWheel.cpp b/stepmania/src/MusicWheel.cpp index 17a0cdb252..17db094a5c 100644 --- a/stepmania/src/MusicWheel.cpp +++ b/stepmania/src/MusicWheel.cpp @@ -307,8 +307,7 @@ MusicWheel::MusicWheel() // init m_mapGroupNameToBannerColor - CArray arraySongs; - arraySongs.Copy( SONGMAN->m_pSongs ); + CArray arraySongs = SONGMAN->m_pSongs; SortSongPointerArrayByGroup( arraySongs ); m_sExpandedSectionName = ""; diff --git a/stepmania/src/NotesLoaderBMS.cpp b/stepmania/src/NotesLoaderBMS.cpp index 5179883d24..e97fee89f8 100644 --- a/stepmania/src/NotesLoaderBMS.cpp +++ b/stepmania/src/NotesLoaderBMS.cpp @@ -166,7 +166,7 @@ bool BMSLoader::LoadFromBMSFile( const CString &sPath, Notes &out ) // valuename, sNoteData, iMeasureNo, iNoteNum, iNumNotesInThisMeasure ); for( int j=0; j