Make m_HoldNotes private.
Remove the copy ctor; no longer needed. (Looking back, I don't think it was needed anyway.)
This commit is contained in:
@@ -33,18 +33,6 @@ NoteData::NoteData(const NoteData &cpy)
|
|||||||
*this = cpy;
|
*this = cpy;
|
||||||
}
|
}
|
||||||
|
|
||||||
NoteData &NoteData::operator= (const NoteData &cpy)
|
|
||||||
{
|
|
||||||
Init();
|
|
||||||
|
|
||||||
for(int t = 0; t < MAX_NOTE_TRACKS; ++t)
|
|
||||||
m_TapNotes[t] = cpy.m_TapNotes[t];
|
|
||||||
|
|
||||||
m_iNumTracks = cpy.m_iNumTracks;
|
|
||||||
m_HoldNotes = cpy.m_HoldNotes;
|
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
|
|
||||||
void NoteData::Init()
|
void NoteData::Init()
|
||||||
{
|
{
|
||||||
m_iNumTracks = 0;
|
m_iNumTracks = 0;
|
||||||
|
|||||||
@@ -27,17 +27,16 @@ class NoteData
|
|||||||
/* Keep this aligned, so that they all have the same size. */
|
/* Keep this aligned, so that they all have the same size. */
|
||||||
vector<TapNote> m_TapNotes[MAX_NOTE_TRACKS];
|
vector<TapNote> m_TapNotes[MAX_NOTE_TRACKS];
|
||||||
|
|
||||||
|
vector<HoldNote> m_HoldNotes;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
NoteData();
|
NoteData();
|
||||||
~NoteData();
|
~NoteData();
|
||||||
NoteData(const NoteData &cpy);
|
NoteData(const NoteData &cpy);
|
||||||
void Init();
|
void Init();
|
||||||
NoteData &operator=(const NoteData &cpy);
|
|
||||||
|
|
||||||
int m_iNumTracks;
|
int m_iNumTracks;
|
||||||
|
|
||||||
vector<HoldNote> m_HoldNotes;
|
|
||||||
|
|
||||||
/* Return the note at the given track and row. Row may be out of
|
/* Return the note at the given track and row. Row may be out of
|
||||||
* range; pretend the song goes on with TAP_EMPTYs indefinitely. */
|
* range; pretend the song goes on with TAP_EMPTYs indefinitely. */
|
||||||
inline TapNote GetTapNote(unsigned track, unsigned row) const
|
inline TapNote GetTapNote(unsigned track, unsigned row) const
|
||||||
|
|||||||
Reference in New Issue
Block a user