X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fsession_configuration.cc;h=899b85e7701504aa0010b89113f857ddd278c86a;hb=df2fd9491904aba95e08e1e26552be609530ee83;hp=c35da623689b1d00b0c9aa2e41fbdeade71fb351;hpb=79f91c7a205d981d2b8cc15e32a6da02d8423065;p=ardour.git diff --git a/libs/ardour/session_configuration.cc b/libs/ardour/session_configuration.cc index c35da62368..899b85e770 100644 --- a/libs/ardour/session_configuration.cc +++ b/libs/ardour/session_configuration.cc @@ -24,6 +24,7 @@ #include "i18n.h" using namespace ARDOUR; +using namespace PBD; SessionConfiguration::SessionConfiguration () : @@ -76,7 +77,7 @@ SessionConfiguration::get_variables () int -SessionConfiguration::set_state (XMLNode const& root, int version) +SessionConfiguration::set_state (XMLNode const& root, int /*version*/) { if (root.name() != "Ardour") { return -1; @@ -111,12 +112,12 @@ SessionConfiguration::set_variables (const XMLNode& node) } void -SessionConfiguration::map_parameters (sigc::slot theSlot) +SessionConfiguration::map_parameters (boost::function& functor) { #undef CONFIG_VARIABLE #undef CONFIG_VARIABLE_SPECIAL -#define CONFIG_VARIABLE(type,var,name,value) theSlot (name); -#define CONFIG_VARIABLE_SPECIAL(type,var,name,value,mutator) theSlot (name); +#define CONFIG_VARIABLE(type,var,name,value) functor (name); +#define CONFIG_VARIABLE_SPECIAL(type,var,name,value,mutator) functor (name); #include "ardour/session_configuration_vars.h" #undef CONFIG_VARIABLE #undef CONFIG_VARIABLE_SPECIAL