1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

Fix some LLVM 17 compiler warnings

This commit is contained in:
Tom Poole 2023-09-26 09:13:17 +01:00
parent 84de2fecee
commit 9dd4857d10

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);
};
};