Rename getNoteBounds to boundsForNotes
This commit is contained in:
@@ -257,6 +257,6 @@ struct NoteBounds
|
||||
};
|
||||
|
||||
|
||||
std::optional<NoteBounds> getNoteBounds(const NoteVector& notes);
|
||||
std::optional<NoteBounds> boundsForNotes(const NoteVector& notes);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -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 {}; }
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user