1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:37:37 +00:00

LibDSP: Improve const correctness

This commit is contained in:
kleines Filmröllchen 2022-05-11 21:49:41 +02:00 committed by Linus Groh
parent 4a6ebb8beb
commit bcb331b862
8 changed files with 23 additions and 22 deletions

View file

@ -79,8 +79,8 @@ void NoteTrack::compute_current_clips_signal()
return;
// FIXME: performance?
for (auto& note_list : playing_clip->notes()) {
for (auto& note : note_list) {
for (auto const& note_list : playing_clip->notes()) {
for (auto const& note : note_list) {
if (note.on_sample >= time && note.off_sample >= time)
break;
if (note.on_sample <= time && note.off_sample >= time)