From ac5f7f9c815903bbf8e78a795b3d2cc4d887e906 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 12 Sep 2002 08:51:24 +0000 Subject: [PATCH] const --- stepmania/src/Song.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stepmania/src/Song.cpp b/stepmania/src/Song.cpp index a81daaf039..79ae15dfa7 100644 --- a/stepmania/src/Song.cpp +++ b/stepmania/src/Song.cpp @@ -38,8 +38,8 @@ const int FILE_CACHE_VERSION = 70; // increment this when Song or Notes changes int CompareBPMSegments(const void *arg1, const void *arg2) { // arg1 and arg2 are of type Step** - BPMSegment* seg1 = (BPMSegment*)arg1; - BPMSegment* seg2 = (BPMSegment*)arg2; + const BPMSegment* seg1 = (const BPMSegment*)arg1; + const BPMSegment* seg2 = (const BPMSegment*)arg2; float score1 = seg1->m_fStartBeat; float score2 = seg2->m_fStartBeat; @@ -60,8 +60,8 @@ void SortBPMSegmentsArray( CArray &arrayBPMSegments ) int CompareStopSegments(const void *arg1, const void *arg2) { // arg1 and arg2 are of type Step** - StopSegment* seg1 = (StopSegment*)arg1; - StopSegment* seg2 = (StopSegment*)arg2; + const StopSegment* seg1 = (const StopSegment*)arg1; + const StopSegment* seg2 = (const StopSegment*)arg2; float score1 = seg1->m_fStartBeat; float score2 = seg2->m_fStartBeat;