From 6137e5066dcb31565866d2dd638d2792df25ece9 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 10 Feb 2004 10:05:44 +0000 Subject: [PATCH] const fixes --- stepmania/src/Course.cpp | 2 +- stepmania/src/Course.h | 2 +- stepmania/src/Song.cpp | 2 +- stepmania/src/Steps.cpp | 2 +- stepmania/src/Steps.h | 2 +- stepmania/src/song.h | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/stepmania/src/Course.cpp b/stepmania/src/Course.cpp index af33354df8..4b47b4ae7e 100644 --- a/stepmania/src/Course.cpp +++ b/stepmania/src/Course.cpp @@ -1050,7 +1050,7 @@ void SortCoursePointerArrayByMostPlayed( vector &arrayCoursePointers, P SortCoursePointerArrayByMostPlayed( arrayCoursePointers, pProfile ); } -void SortCoursePointerArrayByMostPlayed( vector &arrayCoursePointers, Profile* pProfile ) +void SortCoursePointerArrayByMostPlayed( vector &arrayCoursePointers, const Profile* pProfile ) { ASSERT( pProfile ); for(unsigned i = 0; i < arrayCoursePointers.size(); ++i) diff --git a/stepmania/src/Course.h b/stepmania/src/Course.h index 694dc5f643..4c46b84dd3 100644 --- a/stepmania/src/Course.h +++ b/stepmania/src/Course.h @@ -166,7 +166,7 @@ void SortCoursePointerArrayByAvgDifficulty( vector &apCourses ); void SortCoursePointerArrayByTotalDifficulty( vector &apCourses ); void SortCoursePointerArrayByRanking( vector &apCourses ); void SortCoursePointerArrayByMostPlayed( vector &arrayCoursePointers, ProfileSlot slot ); -void SortCoursePointerArrayByMostPlayed( vector &arrayCoursePointers, Profile* pProfile ); +void SortCoursePointerArrayByMostPlayed( vector &arrayCoursePointers, const Profile* pProfile ); void MoveRandomToEnd( vector &apCourses ); diff --git a/stepmania/src/Song.cpp b/stepmania/src/Song.cpp index ce66a9f381..5861eec9a0 100644 --- a/stepmania/src/Song.cpp +++ b/stepmania/src/Song.cpp @@ -1375,7 +1375,7 @@ void SortSongPointerArrayByMostPlayed( vector &arraySongPointers, Profile SortSongPointerArrayByMostPlayed( arraySongPointers, pProfile ); } -void SortSongPointerArrayByMostPlayed( vector &arraySongPointers, Profile* pProfile ) +void SortSongPointerArrayByMostPlayed( vector &arraySongPointers, const Profile* pProfile ) { ASSERT( pProfile ); for(unsigned i = 0; i < arraySongPointers.size(); ++i) diff --git a/stepmania/src/Steps.cpp b/stepmania/src/Steps.cpp index 8b81bdb4c6..7597366f0c 100644 --- a/stepmania/src/Steps.cpp +++ b/stepmania/src/Steps.cpp @@ -335,7 +335,7 @@ void SortStepsPointerArrayByMostPlayed( vector &vStepsPointers, ProfileS SortStepsPointerArrayByMostPlayed( vStepsPointers, pProfile ); } -void SortStepsPointerArrayByMostPlayed( vector &vStepsPointers, Profile* pProfile ) +void SortStepsPointerArrayByMostPlayed( vector &vStepsPointers, const Profile* pProfile ) { ASSERT( pProfile ); for(unsigned i = 0; i < vStepsPointers.size(); ++i) diff --git a/stepmania/src/Steps.h b/stepmania/src/Steps.h index d0c9f1e9d7..c607956bfb 100644 --- a/stepmania/src/Steps.h +++ b/stepmania/src/Steps.h @@ -91,6 +91,6 @@ void SortNotesArrayByDifficulty( vector &arrayNotess ); bool CompareStepsPointersByTypeAndDifficulty(const Steps *pStep1, const Steps *pStep2); void SortStepsByTypeAndDifficulty( vector &arraySongPointers ); void SortStepsPointerArrayByMostPlayed( vector &vStepsPointers, ProfileSlot slot ); -void SortStepsPointerArrayByMostPlayed( vector &vStepsPointers, Profile* pProfile ); +void SortStepsPointerArrayByMostPlayed( vector &vStepsPointers, const Profile* pProfile ); #endif diff --git a/stepmania/src/song.h b/stepmania/src/song.h index f4ae526069..b9ba0fdb59 100644 --- a/stepmania/src/song.h +++ b/stepmania/src/song.h @@ -211,7 +211,7 @@ void SortSongPointerArrayByArtist( vector &arraySongPointers ); void SortSongPointerArrayByGroupAndDifficulty( vector &arraySongPointers ); void SortSongPointerArrayByGroupAndTitle( vector &arraySongPointers ); void SortSongPointerArrayByMostPlayed( vector &arraySongPointers, ProfileSlot slot ); -void SortSongPointerArrayByMostPlayed( vector &arraySongPointers, Profile* pProfile ); +void SortSongPointerArrayByMostPlayed( vector &arraySongPointers, const Profile* pProfile ); void SortSongPointerArrayByMeter( vector &arraySongPointers, Difficulty dc ); CString GetSectionNameFromSongAndSort( const Song* pSong, SongSortOrder so ); void SortSongPointerArrayBySectionName( vector &arraySongPointers, SongSortOrder so );