mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:27:43 +00:00
Piano: Use size_t for track count
This commit is contained in:
parent
876f00e635
commit
d757027638
2 changed files with 3 additions and 3 deletions
|
@ -27,10 +27,10 @@ public:
|
|||
~TrackManager() = default;
|
||||
|
||||
NonnullRefPtr<DSP::NoteTrack> current_track() { return *m_tracks[m_current_track]; }
|
||||
int track_count() { return m_tracks.size(); };
|
||||
size_t track_count() { return m_tracks.size(); };
|
||||
void set_current_track(size_t track_index)
|
||||
{
|
||||
VERIFY((int)track_index < track_count());
|
||||
VERIFY(track_index < track_count());
|
||||
m_current_track = track_index;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue