mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 02:12:09 -05:00
Piano: Make TrackManager::next_track_index const
That's very much an informational API.
This commit is contained in:
parent
7e04560af4
commit
a861d2b728
2 changed files with 2 additions and 2 deletions
|
@ -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())
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue