mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-14 20:40:03 +02:00
Remove support for null pointers in setHostContext
Like the other functions, null pointers are never valid here so we shouldn't bother passing them as it only increases complexity.
This commit is contained in:
@@ -443,18 +443,14 @@ void Vst3Bridge::run() {
|
||||
},
|
||||
[&](YaPluginFactory::SetHostContext& request)
|
||||
-> YaPluginFactory::SetHostContext::Response {
|
||||
if (request.host_context_args) {
|
||||
plugin_factory_host_context =
|
||||
Steinberg::owned(new Vst3HostContextProxyImpl(
|
||||
*this, std::move(*request.host_context_args)));
|
||||
} else {
|
||||
plugin_factory_host_context = nullptr;
|
||||
}
|
||||
plugin_factory_host_context =
|
||||
Steinberg::owned(new Vst3HostContextProxyImpl(
|
||||
*this, std::move(request.host_context_args)));
|
||||
|
||||
Steinberg::FUnknownPtr<Steinberg::IPluginFactory3> factory_3(
|
||||
module->getFactory().get());
|
||||
|
||||
assert(factory_3);
|
||||
|
||||
return factory_3->setHostContext(plugin_factory_host_context);
|
||||
}});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user