summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ghostregion.h
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2016-12-21 03:30:32 +1100
committernick_m <mainsbridge@gmail.com>2016-12-21 03:30:32 +1100
commitbf75770939283e3bdaedb48d181c44143bb9b1a6 (patch)
treebac3069844cf00e5d3b5e5b74ef2004933f55982 /gtk2_ardour/ghostregion.h
parenteecc9ed743d0623bf03ce1ead44ed329fa11211c (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.h3
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;
};