Optimize, fix const

This commit is contained in:
Glenn Maynard
2003-10-04 02:30:06 +00:00
parent 9a6aa5f8cb
commit 1a8e342768
2 changed files with 6 additions and 3 deletions
+5 -2
View File
@@ -103,11 +103,14 @@ void NoteData::Config( const NoteData &From )
m_iNumTracks = From.m_iNumTracks;
}
void NoteData::CopyAll( NoteData* pFrom )
void NoteData::CopyAll( const NoteData* pFrom )
{
Config(*pFrom);
ClearAll();
CopyRange( pFrom, 0, pFrom->GetLastRow() );
for( int c=0; c<m_iNumTracks; c++ )
m_TapNotes[c] = pFrom->m_TapNotes[c];
m_HoldNotes = pFrom->m_HoldNotes;
}
void NoteData::AddHoldNote( HoldNote add )
+1 -1
View File
@@ -58,7 +58,7 @@ public:
void ClearRange( int iNoteIndexBegin, int iNoteIndexEnd );
void ClearAll();
void CopyRange( NoteData* pFrom, int iFromIndexBegin, int iFromIndexEnd, int iToIndexBegin = -1 );
void CopyAll( NoteData* pFrom );
void CopyAll( const NoteData* pFrom );
inline bool IsRowEmpty( int index ) const
{