From b2cee1e750993ac89c1df81d62b819c1d28b6dbe Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Thu, 17 Dec 2020 17:54:57 +0100 Subject: [PATCH] Rename PluginObject to InstanceInterfaces To make it a bit clearer that this is a holder of interface smart pointers. --- src/wine-host/bridges/vst3.cpp | 5 +++-- src/wine-host/bridges/vst3.h | 8 ++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/wine-host/bridges/vst3.cpp b/src/wine-host/bridges/vst3.cpp index a65784f7..f6dfd607 100644 --- a/src/wine-host/bridges/vst3.cpp +++ b/src/wine-host/bridges/vst3.cpp @@ -22,9 +22,10 @@ #include "vst3-impls/host-application.h" -PluginObject::PluginObject() {} +InstanceInterfaces::InstanceInterfaces() {} -PluginObject::PluginObject(Steinberg::IPtr object) +InstanceInterfaces::InstanceInterfaces( + Steinberg::IPtr object) : object(object), audio_processor(object), component(object), diff --git a/src/wine-host/bridges/vst3.h b/src/wine-host/bridges/vst3.h index 508e2f01..b31ef7da 100644 --- a/src/wine-host/bridges/vst3.h +++ b/src/wine-host/bridges/vst3.h @@ -32,10 +32,10 @@ * `IHostApplication` instance passed to the plugin during * `IPluginBase::initialize()`. */ -struct PluginObject { - PluginObject(); +struct InstanceInterfaces { + InstanceInterfaces(); - PluginObject(Steinberg::IPtr object); + InstanceInterfaces(Steinberg::IPtr object); /** * If the host passes an `IHostApplication` during @@ -149,6 +149,6 @@ class Vst3Bridge : public HostBridge { * will cause all pointers to it to get dropped and the object to be cleaned * up. */ - std::map object_instances; + std::map object_instances; std::mutex object_instances_mutex; };