Rename internal sends when their send-to bus changes.
[ardour.git] / libs / ardour / ardour / session_region.h
index 66868f6d181e2cfac606ea0466d00fb095da385c..136aaa002229be006c2403df0789ff5dbfcf982e 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2000-2007 Paul Davis 
+    Copyright (C) 2000-2007 Paul Davis
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
 #ifndef __ardour_session_region_h__
 #define __ardour_session_region_h__
 
-#include <ardour/session.h>
-#include <ardour/audioregion.h>
+#include "ardour/session.h"
+#include "ardour/audioregion.h"
 
 namespace ARDOUR {
 
-template<class T> void Session::foreach_audio_region (T *obj, void (T::*func)(boost::shared_ptr<AudioRegion>))
+template<class T> void
+Session::foreach_region (T *obj, void (T::*func)(boost::shared_ptr<Region>))
 {
        Glib::Mutex::Lock lm (region_lock);
-       for (AudioRegionList::iterator i = audio_regions.begin(); i != audio_regions.end(); i++) {
+       for (RegionList::iterator i = regions.begin(); i != regions.end(); i++) {
                (obj->*func) (i->second);
        }
 }
 
-}
+} // namespace ARDOUR
 
 #endif /* __ardour_session_region_h__ */