Unify exception handling style

This commit is contained in:
Robbert van der Helm
2021-08-07 13:17:03 +02:00
parent 9160de6483
commit 1883888ec6
4 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -536,7 +536,7 @@ intptr_t Vst2PluginBridge::dispatch(AEffect* /*plugin*/,
return_value = sockets.host_vst_dispatch.send_event(
converter, std::pair<Vst2Logger&, bool>(logger, true),
opcode, index, value, data, option);
} catch (const boost::system::system_error& a) {
} catch (const boost::system::system_error&) {
// Thrown when the socket gets closed because the VST plugin
// loaded into the Wine process crashed during shutdown
logger.log("The plugin crashed during shutdown, ignoring");
@@ -217,7 +217,7 @@ Vst3PlugViewProxyImpl::setFrame(Steinberg::IPlugFrame* frame) {
// try to call those functions from an `IRunLoop` event handler.
try {
run_loop_tasks.emplace(plug_frame);
} catch (const std::runtime_error& e) {
} catch (const std::runtime_error& error) {
// In case the host does not support `IRunLoop` or if we can't
// register an event handler, we'll throw during `RunLoopTasks`'
// constructor
@@ -226,7 +226,7 @@ Vst3PlugViewProxyImpl::setFrame(Steinberg::IPlugFrame* frame) {
bridge.logger.log(
"The host does not support IRunLoop, falling back to naive GUI "
"function execution: " +
std::string(e.what()));
std::string(error.what()));
}
return bridge.send_mutually_recursive_message(YaPlugView::SetFrame{