More const fixups.

This commit is contained in:
Glenn Maynard
2002-08-21 00:48:41 +00:00
parent a8cbf08e3d
commit 22f558bf34
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -1452,8 +1452,8 @@ void SortSongPointerArrayByTitle( CArray<Song*, Song*> &arraySongPointers )
int CompareSongPointersByBPM(const void *arg1, const void *arg2)
{
Song* pSong1 = *(Song**)arg1;
Song* pSong2 = *(Song**)arg2;
const Song* pSong1 = *(const Song**)arg1;
const Song* pSong2 = *(const Song**)arg2;
float fMinBPM1, fMaxBPM1, fMinBPM2, fMaxBPM2;
pSong1->GetMinMaxBPM( fMinBPM1, fMaxBPM1 );
+2 -2
View File
@@ -117,7 +117,7 @@ public:
void AddStopSegment( StopSegment seg );
void AddAnimationSegment( AnimationSegment seg );
void GetMinMaxBPM( float &fMinBPM, float &fMaxBPM )
void GetMinMaxBPM( float &fMinBPM, float &fMaxBPM ) const
{
fMaxBPM = 0;
fMinBPM = 100000; // inf
@@ -128,7 +128,7 @@ public:
fMinBPM = min( seg.m_fBPM, fMinBPM );
}
};
float GetBPMAtBeat( float fBeat )
float GetBPMAtBeat( float fBeat ) const
{
for( int i=0; i<m_BPMSegments.GetSize()-1; i++ )
if( m_BPMSegments[i+1].m_fStartBeat > fBeat )