From 2bad0e5c55f7ce021092ed27245f1d87168d1279 Mon Sep 17 00:00:00 2001 From: "Julien \"_FrnchFrgg_\" RIVAUD" Date: Tue, 19 Jul 2016 18:30:36 +0200 Subject: Make MidiModel::write_section_to() more type-independant Replace hard-coded Evoral::Beats by TimeType which is currently the same thing but might change in the future. --- libs/ardour/midi_model.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libs') diff --git a/libs/ardour/midi_model.cc b/libs/ardour/midi_model.cc index 7f2b7fb863..17b5b8a1cb 100644 --- a/libs/ardour/midi_model.cc +++ b/libs/ardour/midi_model.cc @@ -1482,8 +1482,8 @@ MidiModel::sync_to_source (const Glib::Threads::Mutex::Lock& source_lock) bool MidiModel::write_section_to (boost::shared_ptr source, const Glib::Threads::Mutex::Lock& source_lock, - Evoral::Beats begin_time, - Evoral::Beats end_time) + TimeType begin_time, + TimeType end_time) { ReadLock lock(read_lock()); MidiStateTracker mst; @@ -1495,12 +1495,12 @@ MidiModel::write_section_to (boost::shared_ptr source, source->mark_streaming_midi_write_started (source_lock, note_mode()); for (Evoral::Sequence::const_iterator i = begin(TimeType(), true); i != end(); ++i) { - const Evoral::Event& ev (*i); + const Evoral::Event& ev (*i); if (ev.time() >= begin_time && ev.time() < end_time) { - const Evoral::MIDIEvent* mev = - static_cast* > (&ev); + const Evoral::MIDIEvent* mev = + static_cast* > (&ev); if (!mev) { continue; -- cgit v1.2.3