From c2581734b16ed9aba9c2b1f624dc3f1785bcb711 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 13 Nov 2006 18:28:29 +0000 Subject: [PATCH] const --- stepmania/src/Course.cpp | 2 +- stepmania/src/Course.h | 2 +- stepmania/src/SongManager.cpp | 2 +- stepmania/src/SongManager.h | 2 +- stepmania/src/Trail.cpp | 2 +- stepmania/src/Trail.h | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/stepmania/src/Course.cpp b/stepmania/src/Course.cpp index eef0cbfd53..62ba0b3fc7 100644 --- a/stepmania/src/Course.cpp +++ b/stepmania/src/Course.cpp @@ -676,7 +676,7 @@ bool Course::AllSongsAreFixed() const return true; } -void Course::Invalidate( Song *pStaleSong ) +void Course::Invalidate( const Song *pStaleSong ) { FOREACH_CONST( CourseEntry, m_vEntries, e ) { diff --git a/stepmania/src/Course.h b/stepmania/src/Course.h index 5f83589a0e..a1229aea44 100644 --- a/stepmania/src/Course.h +++ b/stepmania/src/Course.h @@ -149,7 +149,7 @@ public: void RegenerateNonFixedTrails() const; /* Call when a Song or its Steps are deleted/changed. */ - void Invalidate( Song *pStaleSong ); + void Invalidate( const Song *pStaleSong ); void GetAllCachedTrails( vector &out ); RString GetCacheFilePath() const; diff --git a/stepmania/src/SongManager.cpp b/stepmania/src/SongManager.cpp index 6dafdae738..7bea7d6b96 100644 --- a/stepmania/src/SongManager.cpp +++ b/stepmania/src/SongManager.cpp @@ -863,7 +863,7 @@ void SongManager::Cleanup() * are removed or changed. This doesn't touch GAMESTATE and StageStats * pointers. Currently, the only time Steps are altered independantly of the * Courses and Songs is in Edit Mode, which updates the other pointers it needs. */ -void SongManager::Invalidate( Song *pStaleSong ) +void SongManager::Invalidate( const Song *pStaleSong ) { FOREACH( Course*, this->m_pCourses, pCourse ) { diff --git a/stepmania/src/SongManager.h b/stepmania/src/SongManager.h index aab551399d..c1fe353ed3 100644 --- a/stepmania/src/SongManager.h +++ b/stepmania/src/SongManager.h @@ -33,7 +33,7 @@ public: void FreeSongs(); void Cleanup(); - void Invalidate( Song *pStaleSong ); + void Invalidate( const Song *pStaleSong ); void RegenerateNonFixedCourses(); void SetPreferences(); diff --git a/stepmania/src/Trail.cpp b/stepmania/src/Trail.cpp index e7bcd661d9..a98ff002d8 100644 --- a/stepmania/src/Trail.cpp +++ b/stepmania/src/Trail.cpp @@ -175,7 +175,7 @@ bool Trail::IsSecret() const return false; } -bool Trail::ContainsSong( Song* pSong ) const +bool Trail::ContainsSong( const Song *pSong ) const { FOREACH_CONST( TrailEntry, m_vEntries, e ) { diff --git a/stepmania/src/Trail.h b/stepmania/src/Trail.h index 55e4d74c90..dd2f399831 100644 --- a/stepmania/src/Trail.h +++ b/stepmania/src/Trail.h @@ -70,7 +70,7 @@ public: float GetLengthSeconds() const; void GetDisplayBpms( DisplayBpms &AddTo ) const; bool IsSecret() const; - bool ContainsSong( Song* pSong ) const; + bool ContainsSong( const Song *pSong ) const; // Lua void PushSelf( lua_State *L );