Use sigc::slots rather than templates + function ptrs for a foreach_region and foreach_crossfade.

git-svn-id: svn://localhost/ardour2/branches/3.0@5118 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2009-06-03 00:23:34 +00:00
parent 27915ccdc0
commit a75e811edb
9 changed files with 46 additions and 64 deletions

View file

@ -167,7 +167,8 @@ AutomationStreamView::redisplay_diskstream ()
// Add and display region views, and flag them as valid
if (_trackview.is_track()) {
_trackview.get_diskstream()->playlist()->foreach_region (
static_cast<StreamView*>(this), &StreamView::add_region_view);
sigc::mem_fun (*this, &StreamView::add_region_view)
);
}
// Stack regions by layer, and remove invalid regions