Optimize, fix const
This commit is contained in:
@@ -103,11 +103,14 @@ void NoteData::Config( const NoteData &From )
|
|||||||
m_iNumTracks = From.m_iNumTracks;
|
m_iNumTracks = From.m_iNumTracks;
|
||||||
}
|
}
|
||||||
|
|
||||||
void NoteData::CopyAll( NoteData* pFrom )
|
void NoteData::CopyAll( const NoteData* pFrom )
|
||||||
{
|
{
|
||||||
Config(*pFrom);
|
Config(*pFrom);
|
||||||
ClearAll();
|
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 )
|
void NoteData::AddHoldNote( HoldNote add )
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ public:
|
|||||||
void ClearRange( int iNoteIndexBegin, int iNoteIndexEnd );
|
void ClearRange( int iNoteIndexBegin, int iNoteIndexEnd );
|
||||||
void ClearAll();
|
void ClearAll();
|
||||||
void CopyRange( NoteData* pFrom, int iFromIndexBegin, int iFromIndexEnd, int iToIndexBegin = -1 );
|
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
|
inline bool IsRowEmpty( int index ) const
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user