code motion to put Sequence::{add,append}_patch_changed_unlocked() next to each other as candidates for removal
git-svn-id: svn://localhost/ardour2/branches/3.0@13045 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
6e3168b7d3
commit
f97da74cf7
@ -770,16 +770,6 @@ Sequence<Time>::remove_note_unlocked(const constNotePtr note)
|
||||
}
|
||||
}
|
||||
|
||||
template<typename Time>
|
||||
void
|
||||
Sequence<Time>::add_patch_change_unlocked (PatchChangePtr p)
|
||||
{
|
||||
_patch_changes.insert (p);
|
||||
if (p->id () < 0) {
|
||||
p->set_id (Evoral::next_event_id ());
|
||||
}
|
||||
}
|
||||
|
||||
template<typename Time>
|
||||
void
|
||||
Sequence<Time>::remove_patch_change_unlocked (const constPatchChangePtr p)
|
||||
@ -1010,6 +1000,17 @@ Sequence<Time>::append_patch_change_unlocked (const PatchChange<Time>& ev, event
|
||||
_patch_changes.insert (p);
|
||||
}
|
||||
|
||||
template<typename Time>
|
||||
void
|
||||
Sequence<Time>::add_patch_change_unlocked (PatchChangePtr p)
|
||||
{
|
||||
if (p->id () < 0) {
|
||||
p->set_id (Evoral::next_event_id ());
|
||||
}
|
||||
|
||||
_patch_changes.insert (p);
|
||||
}
|
||||
|
||||
template<typename Time>
|
||||
bool
|
||||
Sequence<Time>::contains (const NotePtr& note) const
|
||||
|
Loading…
Reference in New Issue
Block a user