Browse Source

Fix some LLVM 17 compiler warnings

v7.0.9
Tom Poole 2 years ago
parent
commit
9dd4857d10
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      examples/Plugins/HostPluginDemo.h

+ 3
- 3
examples/Plugins/HostPluginDemo.h View File

@@ -326,15 +326,15 @@ public:
addAndMakeVisible (pluginListComponent);
addAndMakeVisible (buttons);
const auto getCallback = [this, &list, callback = std::forward<Callback> (callback)] (EditorStyle style)
const auto getCallback = [this, &list, cb = std::forward<Callback> (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);
};
};


Loading…
Cancel
Save