diff --git a/include/Note.h b/include/Note.h index 434ad4025..f03d74758 100644 --- a/include/Note.h +++ b/include/Note.h @@ -257,6 +257,6 @@ struct NoteBounds }; -std::optional getNoteBounds(const NoteVector& notes); +std::optional boundsForNotes(const NoteVector& notes); #endif diff --git a/src/core/Note.cpp b/src/core/Note.cpp index d0b25f14e..20770a0a4 100644 --- a/src/core/Note.cpp +++ b/src/core/Note.cpp @@ -240,7 +240,7 @@ bool Note::withinRange(int tickStart, int tickEnd) const * * Returns no value if there are no notes */ -std::optional getNoteBounds(const NoteVector& notes) +std::optional boundsForNotes(const NoteVector& notes) { if (notes.empty()) { return {}; } diff --git a/src/gui/clips/MidiClipView.cpp b/src/gui/clips/MidiClipView.cpp index 4252c8f0e..e97b73595 100644 --- a/src/gui/clips/MidiClipView.cpp +++ b/src/gui/clips/MidiClipView.cpp @@ -153,7 +153,7 @@ void MidiClipView::transposeSelection() { if (auto mcv = dynamic_cast(clipview)) { - if (auto bounds = getNoteBounds(mcv->getMidiClip()->notes())) + if (auto bounds = boundsForNotes(mcv->getMidiClip()->notes())) { lowest = std::min(bounds->lowest, lowest); highest = std::max(bounds->highest, highest);