From 9a4ab937adbeac746b97736853be334f7e02929f Mon Sep 17 00:00:00 2001 From: Sudara Date: Wed, 16 Apr 2025 17:58:01 +0200 Subject: [PATCH] Docs: Fix a few tiny typos in comments --- LICENSE.md | 2 +- extras/Build/CMake/FindWebView2.cmake | 2 +- modules/juce_audio_basics/buffers/juce_AudioSampleBuffer.h | 4 ++-- .../juce_audio_basics/buffers/juce_FloatVectorOperations.h | 4 ++-- .../juce_audio_processors/utilities/juce_AudioParameterInt.h | 2 +- .../utilities/juce_ParameterAttachments.h | 2 +- modules/juce_core/containers/juce_PropertySet.h | 2 +- modules/juce_gui_basics/mouse/juce_FileDragAndDropTarget.h | 2 +- modules/juce_gui_basics/widgets/juce_TableHeaderComponent.h | 2 +- 9 files changed, 11 insertions(+), 11 deletions(-) diff --git a/LICENSE.md b/LICENSE.md index 39e3c57e17..91beefb3ad 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -13,7 +13,7 @@ If you are not licensing the JUCE Framework modules under the [AGPLv3](https://www.gnu.org/licenses/agpl-3.0.en.html) then by downloading, installing, or using the JUCE Framework, or combining the JUCE Framework with any other source code, object code, content or any other copyrightable work, you -agree to the terms of the the [JUCE 8 End User Licence +agree to the terms of the [JUCE 8 End User Licence Agreement](https://juce.com/legal/juce-8-licence/), and all incorporated terms including the [JUCE Privacy Policy](https://juce.com/legal/juce-privacy-policy/) and the [JUCE Website Terms of diff --git a/extras/Build/CMake/FindWebView2.cmake b/extras/Build/CMake/FindWebView2.cmake index 741ea2b484..6dc51c3a3c 100644 --- a/extras/Build/CMake/FindWebView2.cmake +++ b/extras/Build/CMake/FindWebView2.cmake @@ -65,7 +65,7 @@ if(subdirs) set(WebView2_library "${WebView2_root_dir}/build/native/${WebView2_arch}/WebView2LoaderStatic.lib") elseif(NOT WebView2_FIND_QUIETLY) message(WARNING - "WebView2 wasn't found in the the local NuGet folder." + "WebView2 wasn't found in the local NuGet folder." "\n" "To install NuGet and the WebView2 package containing the statically linked library, " "open a PowerShell and issue the following commands" diff --git a/modules/juce_audio_basics/buffers/juce_AudioSampleBuffer.h b/modules/juce_audio_basics/buffers/juce_AudioSampleBuffer.h index 5fbad7aac5..e82dd5269f 100644 --- a/modules/juce_audio_basics/buffers/juce_AudioSampleBuffer.h +++ b/modules/juce_audio_basics/buffers/juce_AudioSampleBuffer.h @@ -370,13 +370,13 @@ public: @param keepExistingContent if this is true, it will try to preserve as much of the old data as it can in the new buffer. @param clearExtraSpace if this is true, then any extra channels or space that is - allocated will be also be cleared. If false, then this space is left + allocated will also be cleared. If false, then this space is left uninitialised. @param avoidReallocating if this is true, then changing the buffer's size won't reduce the amount of memory that is currently allocated (but it will still increase it if the new size is bigger than the amount it currently has). If this is false, then a new allocation will be done so that the buffer - uses takes up the minimum amount of memory that it needs. + uses the minimum amount of memory that it needs. */ void setSize (int newNumChannels, int newNumSamples, diff --git a/modules/juce_audio_basics/buffers/juce_FloatVectorOperations.h b/modules/juce_audio_basics/buffers/juce_FloatVectorOperations.h index f0c8f359e7..5609e2b348 100644 --- a/modules/juce_audio_basics/buffers/juce_FloatVectorOperations.h +++ b/modules/juce_audio_basics/buffers/juce_FloatVectorOperations.h @@ -101,10 +101,10 @@ struct JUCE_API FloatVectorOperationsBase /** Multiplies each source1 value by the corresponding source2 value, then adds it to the destination value. */ static void JUCE_CALLTYPE addWithMultiply (FloatType* dest, const FloatType* src1, const FloatType* src2, CountType num) noexcept; - /** Multiplies each source value by the given multiplier, then subtracts it to the destination value. */ + /** Multiplies each source value by the given multiplier, then subtracts it from the destination value. */ static void JUCE_CALLTYPE subtractWithMultiply (FloatType* dest, const FloatType* src, FloatType multiplier, CountType numValues) noexcept; - /** Multiplies each source1 value by the corresponding source2 value, then subtracts it to the destination value. */ + /** Multiplies each source1 value by the corresponding source2 value, then subtracts it from the destination value. */ static void JUCE_CALLTYPE subtractWithMultiply (FloatType* dest, const FloatType* src1, const FloatType* src2, CountType num) noexcept; /** Multiplies the destination values by the source values. */ diff --git a/modules/juce_audio_processors/utilities/juce_AudioParameterInt.h b/modules/juce_audio_processors/utilities/juce_AudioParameterInt.h index f012df80ed..bc2c247080 100644 --- a/modules/juce_audio_processors/utilities/juce_AudioParameterInt.h +++ b/modules/juce_audio_processors/utilities/juce_AudioParameterInt.h @@ -89,7 +89,7 @@ public: @param maxValue The maximum parameter value @param defaultValueIn The default value @param parameterLabel An optional label for the parameter's value - @param stringFromInt An optional lambda function that converts a int + @param stringFromInt An optional lambda function that converts an int value to a string with a maximum length. This may be used by hosts to display the parameter's value. @param intFromString An optional lambda function that parses a string diff --git a/modules/juce_audio_processors/utilities/juce_ParameterAttachments.h b/modules/juce_audio_processors/utilities/juce_ParameterAttachments.h index 18b3748f3c..0c69719621 100644 --- a/modules/juce_audio_processors/utilities/juce_ParameterAttachments.h +++ b/modules/juce_audio_processors/utilities/juce_ParameterAttachments.h @@ -56,7 +56,7 @@ class ParameterAttachment : private AudioProcessorParameter::Listener, private AsyncUpdater { public: - /** Listens to a parameter and calls the the provided function in response to + /** Listens to a parameter and calls the provided function in response to parameter changes. If an undoManager is supplied `beginNewTransaction` will be called on it whenever the UI requests a parameter change via this attachment. diff --git a/modules/juce_core/containers/juce_PropertySet.h b/modules/juce_core/containers/juce_PropertySet.h index 17eb17d902..251278c67d 100644 --- a/modules/juce_core/containers/juce_PropertySet.h +++ b/modules/juce_core/containers/juce_PropertySet.h @@ -182,7 +182,7 @@ public: void restoreFromXml (const XmlElement& xml); //============================================================================== - /** Sets up a second PopertySet that will be used to look up any values that aren't + /** Sets up a second PropertySet that will be used to look up any values that aren't set in this one. If you set this up to be a pointer to a second property set, then whenever one diff --git a/modules/juce_gui_basics/mouse/juce_FileDragAndDropTarget.h b/modules/juce_gui_basics/mouse/juce_FileDragAndDropTarget.h index e4ce051dd1..0a0056686b 100644 --- a/modules/juce_gui_basics/mouse/juce_FileDragAndDropTarget.h +++ b/modules/juce_gui_basics/mouse/juce_FileDragAndDropTarget.h @@ -99,7 +99,7 @@ public: /** Callback to indicate that the user has dropped the files onto this component. - When the user drops the files, this get called, and you can use the files in whatever + When the user drops the files, this gets called, and you can use the files in whatever way is appropriate. Note that after this is called, the fileDragExit method may not be called, so you should diff --git a/modules/juce_gui_basics/widgets/juce_TableHeaderComponent.h b/modules/juce_gui_basics/widgets/juce_TableHeaderComponent.h index 361b7d4356..7ac326fe02 100644 --- a/modules/juce_gui_basics/widgets/juce_TableHeaderComponent.h +++ b/modules/juce_gui_basics/widgets/juce_TableHeaderComponent.h @@ -388,7 +388,7 @@ public: It's up to the LookAndFeel how this is used. */ outlineColourId = 0x1003820, /**< The colour of the table header's outline. */ highlightColourId = 0x1003830, /**< The colour of the table header background when - the mouse is over or down above the the table + the mouse is over or down above the table header. It's up to the LookAndFeel to use a variant of this colour to distinguish between the down and hover state. */