Rename getNoteBounds to boundsForNotes

This commit is contained in:
allejok96
2022-06-11 22:14:29 +02:00
parent 308b4650b6
commit 0d906f7203
3 changed files with 3 additions and 3 deletions

View File

@@ -257,6 +257,6 @@ struct NoteBounds
};
std::optional<NoteBounds> getNoteBounds(const NoteVector& notes);
std::optional<NoteBounds> boundsForNotes(const NoteVector& notes);
#endif

View File

@@ -240,7 +240,7 @@ bool Note::withinRange(int tickStart, int tickEnd) const
*
* Returns no value if there are no notes
*/
std::optional<NoteBounds> getNoteBounds(const NoteVector& notes)
std::optional<NoteBounds> boundsForNotes(const NoteVector& notes)
{
if (notes.empty()) { return {}; }

View File

@@ -153,7 +153,7 @@ void MidiClipView::transposeSelection()
{
if (auto mcv = dynamic_cast<MidiClipView*>(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);