From e54426930eb701a285cd65828ba2b4f60f2e64dc Mon Sep 17 00:00:00 2001 From: Kot <1192090+koteq@users.noreply.github.com> Date: Sat, 4 Jan 2025 13:47:48 +0000 Subject: [PATCH] Update to JUCE 8.0.4 --- CMakeLists.txt | 2 +- JUCE | 2 +- Source/HostStartup.cpp | 8 ++++---- Source/IconMenu.cpp | 4 ++-- Source/IconMenu.hpp | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 732f771..78f3bf4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -101,7 +101,7 @@ target_compile_definitions("${PROJECT_NAME}" JUCE_PLUGINHOST_VST=0 JUCE_PLUGINHOST_VST3=1 - JUCE_DISPLAY_SPLASH_SCREEN=1 + JUCE_DISPLAY_SPLASH_SCREEN=0 JUCE_REPORT_APP_USAGE=0 JUCE_MODAL_LOOPS_PERMITTED=1) diff --git a/JUCE b/JUCE index 69795dc..51d11a2 160000 --- a/JUCE +++ b/JUCE @@ -1 +1 @@ -Subproject commit 69795dc8e589a9eb5df251b6dd994859bf7b3fab +Subproject commit 51d11a2be6d5c97ccf12b4e5e827006e19f0555a diff --git a/Source/HostStartup.cpp b/Source/HostStartup.cpp index 1f932f5..636df92 100644 --- a/Source/HostStartup.cpp +++ b/Source/HostStartup.cpp @@ -20,12 +20,12 @@ class PluginHostApp : public JUCEApplication checkArguments(&options); - appProperties = new ApplicationProperties(); + appProperties.reset (new ApplicationProperties()); appProperties->setStorageParameters (options); LookAndFeel::setDefaultLookAndFeel (&lookAndFeel); - mainWindow = new IconMenu(); + mainWindow.reset (new IconMenu()); #if JUCE_MAC Process::setDockIconVisible(false); #endif @@ -51,11 +51,11 @@ class PluginHostApp : public JUCEApplication } ApplicationCommandManager commandManager; - ScopedPointer appProperties; + std::unique_ptr appProperties; LookAndFeel_V3 lookAndFeel; private: - ScopedPointer mainWindow; + std::unique_ptr mainWindow; StringArray getParameter(String lookFor) { StringArray parameters = getCommandLineParameterArray(); diff --git a/Source/IconMenu.cpp b/Source/IconMenu.cpp index 1070c8b..e9e0c0e 100644 --- a/Source/IconMenu.cpp +++ b/Source/IconMenu.cpp @@ -83,7 +83,7 @@ IconMenu::IconMenu() : INDEX_EDIT(1000000), INDEX_BYPASS(2000000), INDEX_DELETE( activePluginList.addChangeListener(this); setIcon(); setIconTooltip(JUCEApplication::getInstance()->getApplicationName()); -}; +} IconMenu::~IconMenu() { @@ -501,7 +501,7 @@ void IconMenu::showAudioSettings() void IconMenu::reloadPlugins() { if (pluginListWindow == nullptr) - pluginListWindow = new PluginListWindow(*this, formatManager); + pluginListWindow.reset (new PluginListWindow(*this, formatManager)); pluginListWindow->toFront(true); } diff --git a/Source/IconMenu.hpp b/Source/IconMenu.hpp index f16c0ed..299ddba 100644 --- a/Source/IconMenu.hpp +++ b/Source/IconMenu.hpp @@ -43,7 +43,7 @@ class IconMenu : public SystemTrayIconComponent, private Timer, public ChangeLis KnownPluginList activePluginList; KnownPluginList::SortMethod pluginSortMethod; PopupMenu menu; - ScopedPointer scanner; + std::unique_ptr scanner; bool menuIconLeftClicked; AudioProcessorGraph graph; AudioProcessorPlayer player; @@ -54,7 +54,7 @@ class IconMenu : public SystemTrayIconComponent, private Timer, public ChangeLis #endif class PluginListWindow; - ScopedPointer pluginListWindow; + std::unique_ptr pluginListWindow; }; #endif /* IconMenu_hpp */