From 9dd4857d10bd7a0b730a0c2b2039db3204b95472 Mon Sep 17 00:00:00 2001 From: Tom Poole Date: Tue, 26 Sep 2023 09:13:17 +0100 Subject: [PATCH] Fix some LLVM 17 compiler warnings --- examples/Plugins/HostPluginDemo.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); }; };