diff --git a/examples/Plugins/HostPluginDemo.h b/examples/Plugins/HostPluginDemo.h index e47db7dcbe..62f71bf841 100644 --- a/examples/Plugins/HostPluginDemo.h +++ b/examples/Plugins/HostPluginDemo.h @@ -326,15 +326,15 @@ public: addAndMakeVisible (pluginListComponent); addAndMakeVisible (buttons); - const auto getCallback = [this, &list, callback = std::forward (callback)] (EditorStyle style) + const auto getCallback = [this, &list, cb = std::forward (callback)] (EditorStyle style) { - return [this, &list, callback, style] + return [this, &list, cb, style] { const auto index = pluginListComponent.getTableListBox().getSelectedRow(); const auto& types = list.getTypes(); if (isPositiveAndBelow (index, types.size())) - NullCheckedInvocation::invoke (callback, types.getReference (index), style); + NullCheckedInvocation::invoke (cb, types.getReference (index), style); }; };