mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-18 12:46:32 +01:00
Fix websocket C++11ism
This commit is contained in:
parent
af79240c81
commit
8eb4dcb675
4 changed files with 11 additions and 4 deletions
|
|
@ -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 */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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…
Add table
Add a link
Reference in a new issue