Skip to content

Commit

Permalink
minor syntax issues
Browse files Browse the repository at this point in the history
  • Loading branch information
defiantnerd committed Apr 19, 2024
1 parent 389a9df commit fcdd380
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
11 changes: 5 additions & 6 deletions src/clap_proxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions src/detail/vst3/plugview.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<void()> onRemoved, std::function<void()> onDestroy,
std::function<void()> onRunLoopAvailable);
WrappedView(const clap_plugin_t* plugin, const clap_plugin_gui_t* gui, std::function<void()> onRemoved,
std::function<void()> onDestroy, std::function<void()> onRunLoopAvailable);
~WrappedView();

// IPlugView interface
Expand Down

0 comments on commit fcdd380

Please sign in to comment.