From fcdd380783a270c1a073425a8313b4221f7f87dd Mon Sep 17 00:00:00 2001 From: defiantnerd <97224712+defiantnerd@users.noreply.github.com> Date: Fri, 19 Apr 2024 19:30:00 +0200 Subject: [PATCH] minor syntax issues --- src/clap_proxy.h | 11 +++++------ src/detail/vst3/plugview.h | 4 ++-- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/clap_proxy.h b/src/clap_proxy.h index 7a921f47..e0c1590e 100644 --- a/src/clap_proxy.h +++ b/src/clap_proxy.h @@ -72,10 +72,10 @@ class IHost virtual const char* host_get_name() = 0; // context menu - + // actually, everything here should be virtual only, but until all wrappers are updated, // IHost provides default implementations. - + virtual bool supportsContextMenu() const { return false; @@ -96,14 +96,13 @@ class IHost { return false; } - + virtual bool context_menu_popup(const clap_context_menu_target_t* target, int32_t screen_index, int32_t x, int32_t y) { return false; } - #if LIN virtual bool register_fd(int fd, clap_posix_fd_flags_t flags) = 0; virtual bool modify_fd(int fd, clap_posix_fd_flags_t flags) = 0; @@ -227,8 +226,8 @@ class Plugin const clap_context_menu_builder_t* builder); bool context_menu_perform(const clap_context_menu_target_t* target, clap_id action_id); bool context_menu_can_popup(); - bool context_menu_popup(const clap_context_menu_target_t* target, int32_t screen_index, - int32_t x, int32_t y); + bool context_menu_popup(const clap_context_menu_target_t* target, int32_t screen_index, int32_t x, + int32_t y); // hostgui void resize_hints_changed() diff --git a/src/detail/vst3/plugview.h b/src/detail/vst3/plugview.h index 389d86ba..94792038 100644 --- a/src/detail/vst3/plugview.h +++ b/src/detail/vst3/plugview.h @@ -18,8 +18,8 @@ using namespace Steinberg; class WrappedView : public Steinberg::IPlugView, public Steinberg::FObject { public: - WrappedView(const clap_plugin_t* plugin, const clap_plugin_gui_t* gui, std::function onRemoved, std::function onDestroy, - std::function onRunLoopAvailable); + WrappedView(const clap_plugin_t* plugin, const clap_plugin_gui_t* gui, std::function onRemoved, + std::function onDestroy, std::function onRunLoopAvailable); ~WrappedView(); // IPlugView interface