@@ -60,16 +60,16 @@ class StandalonePluginHolder2
6060 handleCreatePlugin ();
6161
6262 auto inChannels =
63- (channelConfiguration.size () > 0 ? channelConfiguration[0 ].numIns : processor-> getMainBusNumInputChannels ()
64- );
63+ (channelConfiguration.size () > 0 ? channelConfiguration[0 ].numIns
64+ : processor-> getMainBusNumInputChannels () );
6565
6666 if (preferredSetupOptions != nullptr )
6767 options.reset (new AudioDeviceManager::AudioDeviceSetup (*preferredSetupOptions));
6868
6969 auto audioInputRequired = (inChannels > 0 );
7070
71- if (audioInputRequired && RuntimePermissions::isRequired (RuntimePermissions::recordAudio) &&
72- !RuntimePermissions::isGranted (RuntimePermissions::recordAudio))
71+ if (audioInputRequired && RuntimePermissions::isRequired (RuntimePermissions::recordAudio)
72+ && !RuntimePermissions::isGranted (RuntimePermissions::recordAudio))
7373 RuntimePermissions::request (
7474 RuntimePermissions::recordAudio,
7575 [this , preferredDefaultDeviceName](bool granted) { init (granted, preferredDefaultDeviceName); }
@@ -185,8 +185,8 @@ class StandalonePluginHolder2
185185 {
186186 stateFileChooser =
187187 std::make_unique<FileChooser>(TRANS (" Save current state" ), getLastFile (), getFilePatterns (fileSuffix));
188- auto flags = FileBrowserComponent::saveMode | FileBrowserComponent::canSelectFiles |
189- FileBrowserComponent::warnAboutOverwriting;
188+ auto flags = FileBrowserComponent::saveMode | FileBrowserComponent::canSelectFiles
189+ | FileBrowserComponent::warnAboutOverwriting;
190190
191191 stateFileChooser->launchAsync (
192192 flags,
@@ -737,11 +737,7 @@ class StandaloneFilterWindow
737737 auto * content = new MainContentComponent (*this );
738738 decoratorConstrainer.setMainContentComponent (content);
739739
740- #if JUCE_IOS || JUCE_ANDROID
741- constexpr auto resizeAutomatically = false ;
742- #else
743740 constexpr auto resizeAutomatically = true ;
744- #endif
745741
746742 setContentOwned (content, resizeAutomatically);
747743 }
0 commit comments