summaryrefslogtreecommitdiff
path: root/libs/ardour/session_state.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2009-12-20 16:50:41 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2009-12-20 16:50:41 +0000
commit738387f9a417537e768d56d3fc4afcb9dc82d66b (patch)
tree47227ac3b82b8813b489904f785a3e52694a5707 /libs/ardour/session_state.cc
parent96cd6c993b0ed9a775f7ea096e2afe01be9d00b9 (diff)
remove a couple of boost::signals2 trouble spots; fix some --strict compile time warnings
git-svn-id: svn://localhost/ardour2/branches/3.0@6378 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session_state.cc')
-rw-r--r--libs/ardour/session_state.cc16
1 files changed, 9 insertions, 7 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc
index 16cbfd1d36..bcd074a516 100644
--- a/libs/ardour/session_state.cc
+++ b/libs/ardour/session_state.cc
@@ -276,10 +276,7 @@ Session::first_stage_init (string fullpath, string snapshot_name)
Processor::ProcessorCreated.connect (*this, boost::bind (&Session::add_processor, this, _1));
NamedSelection::NamedSelectionCreated.connect (*this, boost::bind (&Session::add_named_selection, this, _1));
AutomationList::AutomationListCreated.connect (*this, boost::bind (&Session::add_automation_list, this, _1));
-
- // BOOST SIGNALS
- // Controllable::Destroyed.connect (*this, boost::bind (&Session::remove_controllable, this, _1));
-
+ Controllable::Destroyed.connect (*this, boost::bind (&Session::remove_controllable, this, _1));
IO::PortCountChanged.connect (*this, boost::bind (&Session::ensure_buffers, this, _1));
/* stop IO objects from doing stuff until we're ready for them */
@@ -2291,6 +2288,12 @@ struct RegionCounter {
};
int
+Session::ask_about_playlist_deletion (boost::shared_ptr<Playlist> p)
+{
+ return *AskAboutPlaylistDeletion (p);
+}
+
+int
Session::cleanup_sources (CleanupReport& rep)
{
// FIXME: needs adaptation to midi
@@ -2311,12 +2314,11 @@ Session::cleanup_sources (CleanupReport& rep)
/* step 1: consider deleting all unused playlists */
-/* BOOST SIGNALS
- if (playlists->maybe_delete_unused (boost::bind (AskAboutPlaylistDeletion, _1));
+ if (playlists->maybe_delete_unused (boost::bind (Session::ask_about_playlist_deletion, _1))) {
ret = 0;
goto out;
}
-*/
+
/* step 2: find all un-used sources */
rep.paths.clear ();