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

Everywhere: Use ReadonlySpan<T> instead of Span<T const>

This commit is contained in:
MacDue 2023-02-05 19:02:54 +00:00 committed by Linus Groh
parent 1c92e6ee9d
commit 63b11030f0
102 changed files with 206 additions and 206 deletions

View file

@ -54,7 +54,7 @@ public:
// May do nothing; that's fine.
void remove_note(RollNote note);
Span<RollNote const> notes() const { return m_notes.span(); }
ReadonlySpan<RollNote> notes() const { return m_notes.span(); }
RollNote operator[](size_t index) const { return m_notes[index]; }
RollNote operator[](size_t index) { return m_notes[index]; }

View file

@ -24,7 +24,7 @@ public:
}
}
void transform(Span<float const> data, Span<float> output)
void transform(ReadonlySpan<float> data, Span<float> output)
{
assert(N == 2 * data.size());
assert(N == output.size());

View file

@ -78,7 +78,7 @@ public:
}
bool check_processor_chain_valid() const override;
Span<NonnullRefPtr<NoteClip> const> notes() const { return m_clips.span(); }
ReadonlySpan<NonnullRefPtr<NoteClip>> notes() const { return m_clips.span(); }
void set_note(RollNote note);
void remove_note(RollNote note);