From 1f0b9257b134aa7eac4f1c3a8d535cff8da627ba Mon Sep 17 00:00:00 2001 From: Sudara Date: Thu, 12 Sep 2024 17:55:31 +0200 Subject: [PATCH] Bump to JUCE 8 develop. --- JUCE | 2 +- benchmarks/Benchmarks.cpp | 4 ---- cmake | 2 +- modules/melatonin_inspector | 2 +- tests/PluginBasics.cpp | 5 ----- tests/helpers/test_helpers.h | 5 ++--- 6 files changed, 5 insertions(+), 15 deletions(-) diff --git a/JUCE b/JUCE index 4e106a76..1e5c8889 160000 --- a/JUCE +++ b/JUCE @@ -1 +1 @@ -Subproject commit 4e106a76e834f701858328af3dade2b388669b84 +Subproject commit 1e5c88899eba2aac16b687784d7d9c8bf066ab27 diff --git a/benchmarks/Benchmarks.cpp b/benchmarks/Benchmarks.cpp index 17b90188..bcb2fa49 100644 --- a/benchmarks/Benchmarks.cpp +++ b/benchmarks/Benchmarks.cpp @@ -7,7 +7,6 @@ TEST_CASE ("Boot performance") BENCHMARK_ADVANCED ("Processor constructor") (Catch::Benchmark::Chronometer meter) { - auto gui = juce::ScopedJuceInitialiser_GUI {}; std::vector> storage (size_t (meter.runs())); meter.measure ([&] (int i) { storage[(size_t) i].construct(); }); }; @@ -15,7 +14,6 @@ TEST_CASE ("Boot performance") BENCHMARK_ADVANCED ("Processor destructor") (Catch::Benchmark::Chronometer meter) { - auto gui = juce::ScopedJuceInitialiser_GUI {}; std::vector> storage (size_t (meter.runs())); for (auto& s : storage) s.construct(); @@ -25,8 +23,6 @@ TEST_CASE ("Boot performance") BENCHMARK_ADVANCED ("Editor open and close") (Catch::Benchmark::Chronometer meter) { - auto gui = juce::ScopedJuceInitialiser_GUI {}; - PluginProcessor plugin; // due to complex construction logic of the editor, let's measure open/close together diff --git a/cmake b/cmake index f3d66d09..b2e4cb69 160000 --- a/cmake +++ b/cmake @@ -1 +1 @@ -Subproject commit f3d66d09b4404148da56aec2bbc8009e7a0cba38 +Subproject commit b2e4cb69ec06fad1aff453aab39dac90493adb0c diff --git a/modules/melatonin_inspector b/modules/melatonin_inspector index f03cc2e6..ac5595d2 160000 --- a/modules/melatonin_inspector +++ b/modules/melatonin_inspector @@ -1 +1 @@ -Subproject commit f03cc2e6a0aba7bb8704e79d2ac7dce212d9f50c +Subproject commit ac5595d21b308e18aa2de140c28edb9e7c2adc22 diff --git a/tests/PluginBasics.cpp b/tests/PluginBasics.cpp index 224efb6a..ff2644c5 100644 --- a/tests/PluginBasics.cpp +++ b/tests/PluginBasics.cpp @@ -12,11 +12,6 @@ TEST_CASE ("Plugin instance", "[instance]") { PluginProcessor testPlugin; - // This lets us use JUCE's MessageManager without leaking. - // PluginProcessor might need this if you use the APVTS for example. - // You'll also need it for tests that rely on juce::Graphics, juce::Timer, etc. - auto gui = juce::ScopedJuceInitialiser_GUI {}; - SECTION ("name") { CHECK_THAT (testPlugin.getName().toStdString(), diff --git a/tests/helpers/test_helpers.h b/tests/helpers/test_helpers.h index 1292fc32..cda9938c 100644 --- a/tests/helpers/test_helpers.h +++ b/tests/helpers/test_helpers.h @@ -19,11 +19,10 @@ }); */ -[[maybe_unused]] void runWithinPluginEditor (const std::function& testCode) +[[maybe_unused]] static void runWithinPluginEditor (const std::function& testCode) { PluginProcessor plugin; - auto gui = juce::ScopedJuceInitialiser_GUI {}; - auto editor = plugin.createEditorIfNeeded(); + const auto editor = plugin.createEditorIfNeeded(); testCode (plugin);