From a861d2b7285bf8bad44d824db311966a0b3fe606 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?kleines=20Filmr=C3=B6llchen?= Date: Fri, 13 May 2022 23:39:42 +0200 Subject: [PATCH] Piano: Make TrackManager::next_track_index const That's very much an informational API. --- Userland/Applications/Piano/TrackManager.cpp | 2 +- Userland/Applications/Piano/TrackManager.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Applications/Piano/TrackManager.cpp b/Userland/Applications/Piano/TrackManager.cpp index f8427fd2b7f..408a64d277c 100644 --- a/Userland/Applications/Piano/TrackManager.cpp +++ b/Userland/Applications/Piano/TrackManager.cpp @@ -91,7 +91,7 @@ void TrackManager::add_track() m_tracks.append(make(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()) diff --git a/Userland/Applications/Piano/TrackManager.h b/Userland/Applications/Piano/TrackManager.h index f45dae6f277..f1985971f2b 100644 --- a/Userland/Applications/Piano/TrackManager.h +++ b/Userland/Applications/Piano/TrackManager.h @@ -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> m_tracks;