mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
Minor tidying-up.
git-svn-id: svn://localhost/ardour2/branches/3.0@8882 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
79f060adbd
commit
81aef8b491
4 changed files with 62 additions and 43 deletions
|
|
@ -68,10 +68,7 @@ AutomationStreamView::~AutomationStreamView ()
|
|||
RegionView*
|
||||
AutomationStreamView::add_region_view_internal (boost::shared_ptr<Region> region, bool wfd, bool /*recording*/)
|
||||
{
|
||||
if ( ! region) {
|
||||
cerr << "No region" << endl;
|
||||
return NULL;
|
||||
}
|
||||
assert (region);
|
||||
|
||||
if (wfd) {
|
||||
boost::shared_ptr<MidiRegion> mr = boost::dynamic_pointer_cast<MidiRegion>(region);
|
||||
|
|
@ -105,7 +102,7 @@ AutomationStreamView::add_region_view_internal (boost::shared_ptr<Region> region
|
|||
(*i)->enable_display(wfd);
|
||||
display_region(arv);
|
||||
|
||||
return NULL;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -166,10 +163,8 @@ AutomationStreamView::set_automation_state (AutoState state)
|
|||
void
|
||||
AutomationStreamView::redisplay_track ()
|
||||
{
|
||||
list<RegionView *>::iterator i, tmp;
|
||||
|
||||
// Flag region views as invalid and disable drawing
|
||||
for (i = region_views.begin(); i != region_views.end(); ++i) {
|
||||
for (list<RegionView*>::iterator i = region_views.begin(); i != region_views.end(); ++i) {
|
||||
(*i)->set_valid (false);
|
||||
(*i)->enable_display(false);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue