From 7223d446cbf036114647180f357066993ffabb0a Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 2 Sep 2003 20:39:29 +0000 Subject: [PATCH] const fix --- stepmania/src/Song.cpp | 2 +- stepmania/src/song.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/Song.cpp b/stepmania/src/Song.cpp index 69c28da8c1..e8a5ed5926 100644 --- a/stepmania/src/Song.cpp +++ b/stepmania/src/Song.cpp @@ -1583,7 +1583,7 @@ void Song::AddNotes( Steps* pNotes ) m_apNotes.push_back( pNotes ); } -void Song::RemoveNotes( Steps* pNotes ) +void Song::RemoveNotes( const Steps* pNotes ) { // Avoid any stale Note::parent pointers by removing all AutoGen'd Steps, // then adding them again. diff --git a/stepmania/src/song.h b/stepmania/src/song.h index 51432944cb..e8461a907d 100644 --- a/stepmania/src/song.h +++ b/stepmania/src/song.h @@ -258,7 +258,7 @@ public: int GetNumNotesWithGrade( Grade g ) const; void AddNotes( Steps* pNotes ); // we are responsible for deleting the memory pointed to by pNotes! - void RemoveNotes( Steps* pNotes ); + void RemoveNotes( const Steps* pNotes ); }; CString MakeSortString( CString s );