Piano: Make TrackManager::next_track_index const

That's very much an informational API.
This commit is contained in:
kleines Filmröllchen 2022-05-13 23:39:42 +02:00 committed by Linus Groh
parent 7e04560af4
commit a861d2b728
2 changed files with 2 additions and 2 deletions

View file

@ -91,7 +91,7 @@ void TrackManager::add_track()
m_tracks.append(make<Track>(m_transport));
}
int TrackManager::next_track_index()
int TrackManager::next_track_index() const
{
auto next_track_index = m_current_track + 1;
if (next_track_index >= m_tracks.size())

View file

@ -46,7 +46,7 @@ public:
void set_octave(Direction);
void set_octave(int octave);
void add_track();
int next_track_index();
int next_track_index() const;
private:
Vector<NonnullOwnPtr<Track>> m_tracks;