Fix websocket C++11ism
This commit is contained in:
parent
af79240c81
commit
8eb4dcb675
@ -95,7 +95,7 @@ WebsocketsDispatcher::update_all_nodes (Client client)
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
a_ctrl = strip.plugin (plugin_id).param_control (param_id);
|
a_ctrl = strip.plugin (plugin_id).param_control (param_id);
|
||||||
} catch (ArdourMixerNotFoundException) {
|
} catch (ArdourMixerNotFoundException& err) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -241,7 +241,7 @@ ArdourFeedback::observe_strip_plugins (uint32_t strip_id, ArdourMixerStrip::Plug
|
|||||||
boost::bind<void> (PluginParamValueObserver (), this, strip_id, plugin_id, param_id,
|
boost::bind<void> (PluginParamValueObserver (), this, strip_id, plugin_id, param_id,
|
||||||
boost::weak_ptr<AutomationControl>(control)),
|
boost::weak_ptr<AutomationControl>(control)),
|
||||||
event_loop ());
|
event_loop ());
|
||||||
} catch (ArdourMixerNotFoundException) {
|
} catch (ArdourMixerNotFoundException& e) {
|
||||||
/* ignore */
|
/* ignore */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -101,7 +101,7 @@ ArdourMixerPlugin::param_control (uint32_t param_id) const
|
|||||||
uint32_t control_id = plugin->nth_parameter (param_id, ok);
|
uint32_t control_id = plugin->nth_parameter (param_id, ok);
|
||||||
|
|
||||||
if (!ok || !plugin->parameter_is_input (control_id)) {
|
if (!ok || !plugin->parameter_is_input (control_id)) {
|
||||||
throw ArdourMixerNotFoundException("invalid automation control for param id = "
|
throw ArdourMixerNotFoundException ("invalid automation control for param id = "
|
||||||
+ boost::lexical_cast<std::string>(param_id));
|
+ boost::lexical_cast<std::string>(param_id));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,7 +28,14 @@ namespace ArdourSurface {
|
|||||||
|
|
||||||
struct ArdourMixerNotFoundException : public virtual std::runtime_error
|
struct ArdourMixerNotFoundException : public virtual std::runtime_error
|
||||||
{
|
{
|
||||||
using std::runtime_error::runtime_error; // XXX!
|
public:
|
||||||
|
ArdourMixerNotFoundException (std::string const & what)
|
||||||
|
: runtime_error (what)
|
||||||
|
, _what (what)
|
||||||
|
{}
|
||||||
|
virtual const char* what() const throw() { return _what.c_str(); }
|
||||||
|
private:
|
||||||
|
std::string _what;
|
||||||
};
|
};
|
||||||
|
|
||||||
class ArdourMixerPlugin
|
class ArdourMixerPlugin
|
||||||
|
Loading…
Reference in New Issue
Block a user