From ed30c9e1f17c053ca086baa1fd5049c2a7bc3f71 Mon Sep 17 00:00:00 2001 From: jatin Date: Tue, 19 Dec 2023 17:29:14 -0800 Subject: [PATCH] Formatting --- include/clap-juce-extensions/clap-juce-extensions.h | 9 ++++----- src/wrapper/clap-juce-wrapper.cpp | 10 +++------- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/include/clap-juce-extensions/clap-juce-extensions.h b/include/clap-juce-extensions/clap-juce-extensions.h index 1a80c43..5cea719 100644 --- a/include/clap-juce-extensions/clap-juce-extensions.h +++ b/include/clap-juce-extensions/clap-juce-extensions.h @@ -24,7 +24,6 @@ const clap_plugin *clap_create_plugin(const struct clap_plugin_factory *, const const char *); } - /** Forward declarations for any JUCE classes we might need. */ namespace juce { @@ -284,8 +283,8 @@ struct clap_juce_audio_processor_capabilities * The plugin should call this from within presetLoadFromLocation() to report an error when * trying to load the preset, and then return false from presetLoadFromLocation(). */ - void reportPresetLoadError(uint32_t location_kind, const char * location, const char * load_key, - int32_t os_error, const juce::String & message) + void reportPresetLoadError(uint32_t location_kind, const char *location, const char *load_key, + int32_t os_error, const juce::String &message) { if (onPresetLoadError != nullptr) onPresetLoadError(location_kind, location, load_key, os_error, message); @@ -319,8 +318,8 @@ struct clap_juce_audio_processor_capabilities std::function remoteControlsChangedSignal = nullptr; std::function suggestRemoteControlsPageSignal = nullptr; std::function - onPresetLoadError = nullptr; + int32_t os_error, const juce::String &msg)> + onPresetLoadError = nullptr; std::function extensionGet = nullptr; friend const clap_plugin *ClapAdapter::clap_create_plugin(const struct clap_plugin_factory *, diff --git a/src/wrapper/clap-juce-wrapper.cpp b/src/wrapper/clap-juce-wrapper.cpp index 1f6ca3c..6d147d6 100644 --- a/src/wrapper/clap-juce-wrapper.cpp +++ b/src/wrapper/clap-juce-wrapper.cpp @@ -68,7 +68,7 @@ JUCE_END_IGNORE_WARNINGS_GCC_LIKE } #if CLAP_SUPPORTS_CUSTOM_FACTORY -extern const void * JUCE_CALLTYPE clapJuceExtensionCustomFactory(const char *); +extern const void *JUCE_CALLTYPE clapJuceExtensionCustomFactory(const char *); #endif #if !JUCE_MAC @@ -230,9 +230,7 @@ class EditorContextMenu : public juce::HostProvidedContextMenu item.text = juce::CharPointer_UTF8(entry->label); item.isEnabled = entry->is_enabled; item.action = [&host = this->host, target = *this->menuTarget, - id = entry->action_id] { - host.contextMenuPerform(&target, id); - }; + id = entry->action_id] { host.contextMenuPerform(&target, id); }; currentMenu.addItem(item); } @@ -246,9 +244,7 @@ class EditorContextMenu : public juce::HostProvidedContextMenu item.isEnabled = entry->is_enabled; item.isTicked = entry->is_checked; item.action = [&host = this->host, target = *this->menuTarget, - id = entry->action_id] { - host.contextMenuPerform(&target, id); - }; + id = entry->action_id] { host.contextMenuPerform(&target, id); }; currentMenu.addItem(item); }