Fix std::vector refactor mistake (#6836)
* Use std::vector const reference instead of copying * Add assertions * Simplification
This commit is contained in:
@@ -79,7 +79,7 @@ public:
|
||||
void setStep( int step, bool enabled );
|
||||
|
||||
// Split the list of notes on the given position
|
||||
void splitNotes(NoteVector notes, TimePos pos);
|
||||
void splitNotes(const NoteVector& notes, TimePos pos);
|
||||
|
||||
// clip-type stuff
|
||||
inline Type type() const
|
||||
|
||||
@@ -308,9 +308,9 @@ private:
|
||||
TimePos newNoteLen() const;
|
||||
|
||||
void shiftPos(int amount);
|
||||
void shiftPos(NoteVector notes, int amount);
|
||||
void shiftPos(const NoteVector& notes, int amount);
|
||||
void shiftSemiTone(int amount);
|
||||
void shiftSemiTone(NoteVector notes, int amount);
|
||||
void shiftSemiTone(const NoteVector& notes, int amount);
|
||||
bool isSelection() const;
|
||||
int selectionCount() const;
|
||||
void testPlayNote( Note * n );
|
||||
|
||||
Reference in New Issue
Block a user