From 6433c7bd6151dac4763fe2ac5d0c7ab9089bf674 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 9 Jan 2014 11:54:01 -0500 Subject: [PATCH] a few coding style cleanups --- gtk2_ardour/midi_streamview.cc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/gtk2_ardour/midi_streamview.cc b/gtk2_ardour/midi_streamview.cc index 9359186b97..a1e1269468 100644 --- a/gtk2_ardour/midi_streamview.cc +++ b/gtk2_ardour/midi_streamview.cc @@ -116,11 +116,11 @@ MidiStreamView::create_region_view (boost::shared_ptr r, bool /*wfd*/, b } RegionView* -MidiStreamView::add_region_view_internal (boost::shared_ptr r, bool wfd, bool recording) +MidiStreamView::add_region_view_internal (boost::shared_ptr r, bool wait_for_data, bool recording) { boost::shared_ptr region = boost::dynamic_pointer_cast (r); - if (region == 0) { + if (!region) { return 0; } @@ -131,13 +131,13 @@ MidiStreamView::add_region_view_internal (boost::shared_ptr r, bool wfd, (*i)->set_valid (true); - display_region(dynamic_cast(*i), wfd); + display_region(dynamic_cast(*i), wait_for_data); return 0; } } - MidiRegionView* region_view = dynamic_cast (create_region_view (r, wfd, recording)); + MidiRegionView* region_view = dynamic_cast (create_region_view (r, wait_for_data, recording)); if (region_view == 0) { return 0; } @@ -151,7 +151,7 @@ MidiStreamView::add_region_view_internal (boost::shared_ptr r, bool wfd, } /* display events and find note range */ - display_region (region_view, wfd); + display_region (region_view, wait_for_data); /* fit note range if we are importing */ if (_trackview.session()->operation_in_progress (Operations::insert_file)) { @@ -174,7 +174,7 @@ MidiStreamView::display_region(MidiRegionView* region_view, bool load_model) return; } - region_view->enable_display(true); + region_view->enable_display (true); boost::shared_ptr source(region_view->midi_region()->midi_source(0)); @@ -191,6 +191,7 @@ MidiStreamView::display_region(MidiRegionView* region_view, bool load_model) region_view->display_model(source->model()); } + void MidiStreamView::display_track (boost::shared_ptr tr) {