diff options
author | nick_m <mainsbridge@gmail.com> | 2016-12-21 03:30:32 +1100 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2016-12-21 03:30:32 +1100 |
commit | bf75770939283e3bdaedb48d181c44143bb9b1a6 (patch) | |
tree | bac3069844cf00e5d3b5e5b74ef2004933f55982 /gtk2_ardour/ghostregion.h | |
parent | eecc9ed743d0623bf03ce1ead44ed329fa11211c (diff) |
use a map to find GhostEvents by a pointer to Note.
Diffstat (limited to 'gtk2_ardour/ghostregion.h')
-rw-r--r-- | gtk2_ardour/ghostregion.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk2_ardour/ghostregion.h b/gtk2_ardour/ghostregion.h index a46ab8fe11..75b55d0dbe 100644 --- a/gtk2_ardour/ghostregion.h +++ b/gtk2_ardour/ghostregion.h @@ -119,8 +119,9 @@ private: ArdourCanvas::Color _outline; MidiGhostRegion::GhostEvent* find_event (NoteBase*); + typedef Evoral::Note<Evoral::Beats> NoteType; - typedef std::list<MidiGhostRegion::GhostEvent*> EventList; + typedef std::map<boost::shared_ptr<NoteType>, MidiGhostRegion::GhostEvent* > EventList; EventList events; EventList::iterator _optimization_iterator; }; |