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:
parent
4a6ebb8beb
commit
bcb331b862
8 changed files with 23 additions and 22 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue