mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-14 12:30:00 +02:00
Split up a ConstructArgs from YaContextMenuTarget
So we can send this as a payload when the plugin adds a context menu item.
This commit is contained in:
@@ -16,13 +16,9 @@
|
||||
|
||||
#include "context-menu-target.h"
|
||||
|
||||
YaContextMenuTargetImpl::YaContextMenuTargetImpl(
|
||||
Vst3PluginBridge& bridge,
|
||||
native_size_t owner_instance_id,
|
||||
native_size_t context_menu_id,
|
||||
int32 tag)
|
||||
: YaContextMenuTarget(owner_instance_id, context_menu_id, tag),
|
||||
bridge(bridge) {}
|
||||
YaContextMenuTargetImpl::YaContextMenuTargetImpl(Vst3PluginBridge& bridge,
|
||||
const ConstructArgs&& args)
|
||||
: YaContextMenuTarget(std::move(args)), bridge(bridge) {}
|
||||
|
||||
tresult PLUGIN_API
|
||||
YaContextMenuTargetImpl::queryInterface(const Steinberg::TUID _iid,
|
||||
|
||||
@@ -20,13 +20,8 @@
|
||||
|
||||
class YaContextMenuTargetImpl : public YaContextMenuTarget {
|
||||
public:
|
||||
/**
|
||||
* @override
|
||||
*/
|
||||
YaContextMenuTargetImpl(Vst3PluginBridge& bridge,
|
||||
native_size_t owner_instance_id,
|
||||
native_size_t context_menu_id,
|
||||
int32 tag);
|
||||
const ConstructArgs&& args);
|
||||
|
||||
/**
|
||||
* We'll override the query interface to log queries for interfaces we do
|
||||
|
||||
Reference in New Issue
Block a user