new automation state model, sort of working, but not really
[ardour.git] / libs / ardour / ardour / session_region.h
index 13d88a9aa4d4a13d56329edc641c88995fe66e9b..9217d4cb4115d09aad356c0f766096ee5dfd3ec1 100644 (file)
@@ -6,11 +6,11 @@
 
 namespace ARDOUR {
 
-template<class T> void Session::foreach_audio_region (T *obj, void (T::*func)(AudioRegion *))
+template<class T> void Session::foreach_audio_region (T *obj, void (T::*func)(boost::shared_ptr<AudioRegion>))
 {
        Glib::Mutex::Lock lm (region_lock);
        for (AudioRegionList::iterator i = audio_regions.begin(); i != audio_regions.end(); i++) {
-               (obj->*func) ((*i).second);
+               (obj->*func) (i->second);
        }
 }