13
0

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:
Paul Davis 2012-07-16 14:46:21 +00:00
parent 6e3168b7d3
commit f97da74cf7

View File

@ -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