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:
parent
84de2fecee
commit
9dd4857d10
1 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue