Skip to content

Commit

Permalink
Cleaning up function forward-declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
jatinchowdhury18 committed Oct 15, 2023
1 parent b0b5f7b commit 953dad7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions include/clap-juce-extensions/clap-juce-extensions.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ struct JUCEParameterVariant;

namespace ClapAdapter
{
[[maybe_unused]] static const clap_plugin *clap_create_plugin(const struct clap_plugin_factory *,
const clap_host *, const char *);
const clap_plugin *clap_create_plugin(const struct clap_plugin_factory *, const clap_host *,
const char *);
}


/** Forward declarations for any JUCE classes we might need. */
namespace juce
{
Expand Down
4 changes: 2 additions & 2 deletions src/wrapper/clap-juce-wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2207,8 +2207,8 @@ static const clap_plugin_descriptor *clap_get_plugin_descriptor(const struct cla
return &ClapJuceWrapper::desc;
}

static const clap_plugin *clap_create_plugin(const struct clap_plugin_factory *,
const clap_host *host, const char *plugin_id)
const clap_plugin *clap_create_plugin(const struct clap_plugin_factory *, const clap_host *host,
const char *plugin_id)
{
juce::ScopedJuceInitialiser_GUI libraryInitialiser;

Expand Down

0 comments on commit 953dad7

Please sign in to comment.