From e36736e0ec27a41b4715b7df2dcafbe5e6ec1d6d Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 6 Jan 2020 14:04:16 +0000 Subject: [PATCH] Fixed some typos --- modules/juce_core/containers/juce_Array.h | 2 +- modules/juce_core/containers/juce_ArrayBase.cpp | 2 +- modules/juce_core/containers/juce_DynamicObject.h | 2 +- modules/juce_core/containers/juce_PropertySet.h | 4 ++-- modules/juce_core/juce_core.h | 2 +- modules/juce_core/logging/juce_FileLogger.h | 2 +- modules/juce_core/native/juce_posix_SharedCode.h | 2 +- modules/juce_core/network/juce_Socket.cpp | 6 +++--- modules/juce_core/network/juce_WebInputStream.h | 4 ++-- modules/juce_core/streams/juce_MemoryOutputStream.h | 2 +- modules/juce_core/text/juce_LocalisedStrings.h | 2 +- modules/juce_core/threads/juce_ThreadPool.h | 2 +- modules/juce_core/threads/juce_TimeSliceThread.h | 2 +- modules/juce_data_structures/values/juce_ValueTree.h | 2 +- modules/juce_gui_basics/native/juce_win32_FileChooser.cpp | 2 +- modules/juce_gui_basics/properties/juce_PropertyPanel.h | 2 +- .../native/juce_win32_WebBrowserComponent.cpp | 2 +- 17 files changed, 21 insertions(+), 21 deletions(-) diff --git a/modules/juce_core/containers/juce_Array.h b/modules/juce_core/containers/juce_Array.h index 3b516751f4..a2a37186cc 100644 --- a/modules/juce_core/containers/juce_Array.h +++ b/modules/juce_core/containers/juce_Array.h @@ -30,7 +30,7 @@ namespace juce Examples of arrays are: Array, Array or Array The Array class can be used to hold simple, non-polymorphic objects as well as primitive types - to - do so, the class must fulfil these requirements: + do so, the class must fulfill these requirements: - it must have a copy constructor and assignment operator - it must be able to be relocated in memory by a memcpy without this causing any problems - so objects whose functionality relies on external pointers or references to themselves can not be used. diff --git a/modules/juce_core/containers/juce_ArrayBase.cpp b/modules/juce_core/containers/juce_ArrayBase.cpp index 6893e0638f..7a79da62bf 100644 --- a/modules/juce_core/containers/juce_ArrayBase.cpp +++ b/modules/juce_core/containers/juce_ArrayBase.cpp @@ -304,7 +304,7 @@ public: checkEqual (copyableContainer, noncopyableContainer, referenceContainer); } - beginTest ("add array from initilizer list"); + beginTest ("add array from initializer_list"); { std::vector referenceContainer; ArrayBase copyableContainer; diff --git a/modules/juce_core/containers/juce_DynamicObject.h b/modules/juce_core/containers/juce_DynamicObject.h index 9085e090ae..aed21086f9 100644 --- a/modules/juce_core/containers/juce_DynamicObject.h +++ b/modules/juce_core/containers/juce_DynamicObject.h @@ -78,7 +78,7 @@ public: call, then it invokes it. This method is virtual to allow more dynamic invocation to used for objects - where the methods may not already be set as properies. + where the methods may not already be set as properties. */ virtual var invokeMethod (Identifier methodName, const var::NativeFunctionArgs& args); diff --git a/modules/juce_core/containers/juce_PropertySet.h b/modules/juce_core/containers/juce_PropertySet.h index de83ba21a2..b14cabf5ca 100644 --- a/modules/juce_core/containers/juce_PropertySet.h +++ b/modules/juce_core/containers/juce_PropertySet.h @@ -143,7 +143,7 @@ public: */ void removeValue (StringRef keyName); - /** Returns true if the properies include the given key. */ + /** Returns true if the properties include the given key. */ bool containsKey (StringRef keyName) const noexcept; /** Removes all values. */ @@ -190,7 +190,7 @@ public: PropertySet* getFallbackPropertySet() const noexcept { return fallbackProperties; } protected: - /** Subclasses can override this to be told when one of the properies has been changed. */ + /** Subclasses can override this to be told when one of the properties has been changed. */ virtual void propertyChanged(); private: diff --git a/modules/juce_core/juce_core.h b/modules/juce_core/juce_core.h index 9cd4146946..b7b7aa991a 100644 --- a/modules/juce_core/juce_core.h +++ b/modules/juce_core/juce_core.h @@ -142,7 +142,7 @@ /** Config: JUCE_LOAD_CURL_SYMBOLS_LAZILY If enabled, JUCE will load libcurl lazily when required (for example, when WebInputStream - is used). Enabling this flag may also help with library dependency erros as linking + is used). Enabling this flag may also help with library dependency errors as linking libcurl at compile-time may instruct the linker to hard depend on a specific version of libcurl. It's also useful if you want to limit the amount of JUCE dependencies and you are not using WebInputStream or the URL classes. diff --git a/modules/juce_core/logging/juce_FileLogger.h b/modules/juce_core/logging/juce_FileLogger.h index b6b10745c4..50e5c87428 100644 --- a/modules/juce_core/logging/juce_FileLogger.h +++ b/modules/juce_core/logging/juce_FileLogger.h @@ -83,7 +83,7 @@ public: The filename used is based on the root and suffix strings provided, along with a time and date string, meaning that a new, empty log file will be always be created - rather than appending to an exising one. + rather than appending to an existing one. The method might return nullptr if the file can't be created for some reason. diff --git a/modules/juce_core/native/juce_posix_SharedCode.h b/modules/juce_core/native/juce_posix_SharedCode.h index f48f10cebe..5d30962c43 100644 --- a/modules/juce_core/native/juce_posix_SharedCode.h +++ b/modules/juce_core/native/juce_posix_SharedCode.h @@ -1153,7 +1153,7 @@ public: if (numBytesRead > 0 || feof (readHandle)) return numBytesRead; - // signal occured during fread() so try again + // signal occurred during fread() so try again if (ferror (readHandle) && errno == EINTR) continue; diff --git a/modules/juce_core/network/juce_Socket.cpp b/modules/juce_core/network/juce_Socket.cpp index 4146e0eff3..1e28be5a61 100644 --- a/modules/juce_core/network/juce_Socket.cpp +++ b/modules/juce_core/network/juce_Socket.cpp @@ -283,7 +283,7 @@ namespace SocketHelpers if (! lock.isLocked()) return -1; - auto hasErrorOccured = [&handle] () -> bool + auto hasErrorOccurred = [&handle] () -> bool { auto h = handle.load(); @@ -326,7 +326,7 @@ namespace SocketHelpers fd_set* pwset = forReading ? nullptr : &wset; // NB - need to use select() here as WSAPoll is broken on Windows - if (select ((int) h + 1, prset, pwset, nullptr, timeoutp) < 0 || hasErrorOccured()) + if (select ((int) h + 1, prset, pwset, nullptr, timeoutp) < 0 || hasErrorOccurred()) return -1; return FD_ISSET (h, forReading ? &rset : &wset) ? 1 : 0; @@ -344,7 +344,7 @@ namespace SocketHelpers break; } - if (result < 0 || hasErrorOccured()) + if (result < 0 || hasErrorOccurred()) return -1; return (pfd.revents & eventsFlag) != 0; diff --git a/modules/juce_core/network/juce_WebInputStream.h b/modules/juce_core/network/juce_WebInputStream.h index 18602e7b4e..b4a8194440 100644 --- a/modules/juce_core/network/juce_WebInputStream.h +++ b/modules/juce_core/network/juce_WebInputStream.h @@ -190,10 +190,10 @@ class JUCE_API WebInputStream : public InputStream The position is an absolute number of bytes from the stream's start. For a WebInputStream, this method will fail if wantedPos is smaller - than the curent position. If wantedPos is greater than the current + than the current position. If wantedPos is greater than the current position, then calling setPosition is the same as calling read, i.e. the skipped data will still be downloaded, although skipped bytes will - be discarded immedietely. + be discarded immediately. @returns true if the stream manages to reposition itself correctly @see getPosition diff --git a/modules/juce_core/streams/juce_MemoryOutputStream.h b/modules/juce_core/streams/juce_MemoryOutputStream.h index 0a2480306e..231a7f5fb9 100644 --- a/modules/juce_core/streams/juce_MemoryOutputStream.h +++ b/modules/juce_core/streams/juce_MemoryOutputStream.h @@ -45,7 +45,7 @@ public: Note that the destination block will always be larger than the amount of data that has been written to the stream, because the MemoryOutputStream keeps some - spare capactity at its end. To trim the block's size down to fit the actual + spare capacity at its end. To trim the block's size down to fit the actual data, call flush(), or delete the MemoryOutputStream. @param memoryBlockToWriteTo the block into which new data will be written. diff --git a/modules/juce_core/text/juce_LocalisedStrings.h b/modules/juce_core/text/juce_LocalisedStrings.h index 1ff0e47447..195341e0a3 100644 --- a/modules/juce_core/text/juce_LocalisedStrings.h +++ b/modules/juce_core/text/juce_LocalisedStrings.h @@ -161,7 +161,7 @@ public: countries: fr be mc ch lu @endcode - The country codes are supposed to be 2-character ISO complient codes. + The country codes are supposed to be 2-character ISO compliant codes. */ const StringArray& getCountryCodes() const { return countryCodes; } diff --git a/modules/juce_core/threads/juce_ThreadPool.h b/modules/juce_core/threads/juce_ThreadPool.h index d39ca67aee..21973e134c 100644 --- a/modules/juce_core/threads/juce_ThreadPool.h +++ b/modules/juce_core/threads/juce_ThreadPool.h @@ -76,7 +76,7 @@ public: again when a thread is free. */ }; - /** Peforms the actual work that this job needs to do. + /** Performs the actual work that this job needs to do. Your subclass must implement this method, in which is does its work. diff --git a/modules/juce_core/threads/juce_TimeSliceThread.h b/modules/juce_core/threads/juce_TimeSliceThread.h index 61b0ea2f40..f661cff337 100644 --- a/modules/juce_core/threads/juce_TimeSliceThread.h +++ b/modules/juce_core/threads/juce_TimeSliceThread.h @@ -57,7 +57,7 @@ public: @returns Your method should return the number of milliseconds which it would like to wait before being called again. Returning 0 will make the thread call again as soon as possible (after possibly servicing other busy clients). If you return a value below zero, your client will be removed from the list of clients, - and won't be called again. The value you specify isn't a guaranteee, and is only used as a hint by the + and won't be called again. The value you specify isn't a guarantee, and is only used as a hint by the thread - the actual time before the next callback may be more or less than specified. You can force the TimeSliceThread to wake up and poll again immediately by calling its notify() method. */ diff --git a/modules/juce_data_structures/values/juce_ValueTree.h b/modules/juce_data_structures/values/juce_ValueTree.h index 1145a68aee..0f4f725a48 100644 --- a/modules/juce_data_structures/values/juce_ValueTree.h +++ b/modules/juce_data_structures/values/juce_ValueTree.h @@ -62,7 +62,7 @@ namespace juce will correspond to the order in which the property was added, or that it will remain constant when other properties are added or removed. - Listeners can be added to a ValueTree to be told when properies change and when + Listeners can be added to a ValueTree to be told when properties change and when sub-trees are added or removed. @see var, XmlElement diff --git a/modules/juce_gui_basics/native/juce_win32_FileChooser.cpp b/modules/juce_gui_basics/native/juce_win32_FileChooser.cpp index a7ac49cedf..d708c86043 100644 --- a/modules/juce_gui_basics/native/juce_win32_FileChooser.cpp +++ b/modules/juce_gui_basics/native/juce_win32_FileChooser.cpp @@ -34,7 +34,7 @@ namespace juce // the dialog box. This means that the actual native FileChooser HWND may // not have been created yet when the user deletes JUCE's FileChooser class. If this // occurs the Win32NativeFileChooser will still have a reference count of 1 and will -// simply delete itself immedietely once the HWND will have been created a while later. +// simply delete itself immediately once the HWND will have been created a while later. class Win32NativeFileChooser : public ReferenceCountedObject, private Thread { diff --git a/modules/juce_gui_basics/properties/juce_PropertyPanel.h b/modules/juce_gui_basics/properties/juce_PropertyPanel.h index 35d2e9d715..eeda9c5dc5 100644 --- a/modules/juce_gui_basics/properties/juce_PropertyPanel.h +++ b/modules/juce_gui_basics/properties/juce_PropertyPanel.h @@ -77,7 +77,7 @@ public: The components in the list will be owned by this object and will be automatically deleted later on when no longer needed. - To add properies without them being in a section, use addProperties(). + To add properties without them being in a section, use addProperties(). */ void addSection (const String& sectionTitle, const Array& newPropertyComponents, diff --git a/modules/juce_gui_extra/native/juce_win32_WebBrowserComponent.cpp b/modules/juce_gui_extra/native/juce_win32_WebBrowserComponent.cpp index 13fb78a88f..afdc0b634a 100644 --- a/modules/juce_gui_extra/native/juce_win32_WebBrowserComponent.cpp +++ b/modules/juce_gui_extra/native/juce_win32_WebBrowserComponent.cpp @@ -187,7 +187,7 @@ private: *pDispParams->rgvarg[0].pboolVal = VARIANT_FALSE; // IWebBrowser2 also reports http status codes here, we need - // report only network erros + // report only network errors if (statusCode < 0) { LPTSTR messageBuffer = nullptr;