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:
Robbert van der Helm
2020-12-22 14:03:56 +01:00
parent 3b96ffa349
commit 9288cdcb59
5 changed files with 24 additions and 38 deletions
@@ -406,7 +406,8 @@ tresult PLUGIN_API Vst3PluginProxyImpl::initialize(FUnknown* context) {
.host_context_args = Vst3HostContextProxy::ConstructArgs(
host_context, instance_id())});
} else {
bridge.logger.log("Null pointer passed to 'IPluginBase::initialize()'");
bridge.logger.log(
"WARNING: Null pointer passed to 'IPluginBase::initialize()'");
return Steinberg::kInvalidArgument;
}
}