Mark getter functions in `CMidiEvent` const

This commit is contained in:
Martchus 2024-01-20 18:30:47 +01:00
parent 2ddf663237
commit b9db475500
1 changed files with 2 additions and 2 deletions

View File

@ -105,7 +105,7 @@ public:
m_duration = 0;
}
int deltaTime(){return m_deltaTime;}
int deltaTime() const { return m_deltaTime; }
void addDeltaTime(int delta){m_deltaTime +=delta;}
void subtractDeltaTime(int delta){m_deltaTime -=delta;}
void setDeltaTime(int delta){m_deltaTime = delta;}
@ -233,7 +233,7 @@ public:
////////////////////////////////////////////////////////////////////////////////
//@brief how long the midi note was played for
int getDuration(){return m_duration;}
int getDuration() const { return m_duration; }
/**
* This merges two MidiEvents (this and the other MidiEvent)