From c7a17934e3f51620d2159360040470cd83bf744a Mon Sep 17 00:00:00 2001 From: reuk Date: Mon, 7 Mar 2022 19:54:22 +0000 Subject: [PATCH] Formatting --- extras/AudioPluginHost/Source/UI/PluginWindow.h | 10 +++++----- .../format_types/juce_VSTPluginFormat.cpp | 16 ++++++++-------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/extras/AudioPluginHost/Source/UI/PluginWindow.h b/extras/AudioPluginHost/Source/UI/PluginWindow.h index 4eb95d6a18..7c91c20580 100644 --- a/extras/AudioPluginHost/Source/UI/PluginWindow.h +++ b/extras/AudioPluginHost/Source/UI/PluginWindow.h @@ -159,11 +159,11 @@ public: }; PluginWindow (AudioProcessorGraph::Node* n, Type t, OwnedArray& windowList) - : DocumentWindow (n->getProcessor()->getName() + getFormatSuffix (n->getProcessor()), - LookAndFeel::getDefaultLookAndFeel().findColour (ResizableWindow::backgroundColourId), - DocumentWindow::minimiseButton | DocumentWindow::closeButton), - activeWindowList (windowList), - node (n), type (t) + : DocumentWindow (n->getProcessor()->getName() + getFormatSuffix (n->getProcessor()), + LookAndFeel::getDefaultLookAndFeel().findColour (ResizableWindow::backgroundColourId), + DocumentWindow::minimiseButton | DocumentWindow::closeButton), + activeWindowList (windowList), + node (n), type (t) { setSize (400, 300); diff --git a/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp b/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp index f9ac8a1671..292950e071 100644 --- a/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp +++ b/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp @@ -1401,7 +1401,7 @@ struct VSTPluginInstance final : public AudioPluginInstance, if (! isPowerOn) setPower (true); - // dodgy hack to force some plugins to initialise the sample rate.. + // dodgy hack to force some plugins to initialise the sample rate. if (! hasEditor()) { if (auto* firstParam = getParameters()[0]) @@ -1701,7 +1701,7 @@ struct VSTPluginInstance final : public AudioPluginInstance, return 0; } - // handles non plugin-specific callbacks.. + // handles non plugin-specific callbacks. static pointer_sized_int handleGeneralCallback (int32 opcode, int32 /*index*/, pointer_sized_int /*value*/, void* ptr, float /*opt*/) { switch (opcode) @@ -2472,13 +2472,13 @@ private: } else { - // Not initialised, so just bypass.. + // Not initialised, so just bypass. for (int i = getTotalNumOutputChannels(); --i >= 0;) buffer.clear (i, 0, buffer.getNumSamples()); } { - // copy any incoming midi.. + // copy any incoming midi. const ScopedLock sl (midiInLock); midiMessages.swapWith (incomingMidi); @@ -2593,7 +2593,7 @@ private: { char nm[256] = { 0 }; - // only do this if the plugin can't use indexed names.. + // only do this if the plugin can't use indexed names. if (dispatch (Vst2::effGetProgramNameIndexed, 0, -1, nm, 0) == 0) { auto oldProgram = getCurrentProgram(); @@ -3076,7 +3076,7 @@ private: } // This is an old workaround for some plugins that need a repaint when their - // windows are first created, but it breaks some Izotope plugins.. + // windows are first created, but it breaks some Izotope plugins. bool shouldRepaintCarbonWindowWhenCreated() { return ! plugin.getName().containsIgnoreCase ("izotope"); @@ -3260,7 +3260,7 @@ private: if (isOpen) { // You shouldn't end up hitting this assertion unless the host is trying to do GUI - // cleanup on a non-GUI thread.. If it does that, bad things could happen in here.. + // cleanup on a non-GUI thread. If it does that, bad things could happen in here. JUCE_ASSERT_MESSAGE_MANAGER_IS_LOCKED JUCE_VST_LOG ("Closing VST UI: " + plugin.getName()); @@ -3319,7 +3319,7 @@ private: resizeToFit(); } - // hooks to get keyboard events from VST windows.. + // hooks to get keyboard events from VST windows. static LRESULT CALLBACK vstHookWndProc (HWND hW, UINT message, WPARAM wParam, LPARAM lParam) { for (int i = activeVSTWindows.size(); --i >= 0;)