From 942d269edb8e087e63481b70ebd741bd249fd924 Mon Sep 17 00:00:00 2001 From: Timur Doumler Date: Wed, 2 Mar 2016 17:57:17 +0000 Subject: [PATCH] JuceDemo: removed an unnecessary capture-by-reference from a lambda. --- examples/Demo/Source/MainWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/Demo/Source/MainWindow.cpp b/examples/Demo/Source/MainWindow.cpp index e3f29ceed9..2426148048 100644 --- a/examples/Demo/Source/MainWindow.cpp +++ b/examples/Demo/Source/MainWindow.cpp @@ -561,7 +561,7 @@ AudioDeviceManager& MainAppWindow::getSharedAudioDeviceManager() RuntimePermissions::request ( RuntimePermissions::recordAudio, - [&] (bool wasGranted) { + [] (bool wasGranted) { int numInputChannels = wasGranted ? 2 : 0; sharedAudioDeviceManager->initialise (numInputChannels, 2, nullptr, true, String(), nullptr); }