Browse Source

Fixed some typos

tags/2021-05-28
ed 5 years ago
parent
commit
e36736e0ec
17 changed files with 21 additions and 21 deletions
  1. +1
    -1
      modules/juce_core/containers/juce_Array.h
  2. +1
    -1
      modules/juce_core/containers/juce_ArrayBase.cpp
  3. +1
    -1
      modules/juce_core/containers/juce_DynamicObject.h
  4. +2
    -2
      modules/juce_core/containers/juce_PropertySet.h
  5. +1
    -1
      modules/juce_core/juce_core.h
  6. +1
    -1
      modules/juce_core/logging/juce_FileLogger.h
  7. +1
    -1
      modules/juce_core/native/juce_posix_SharedCode.h
  8. +3
    -3
      modules/juce_core/network/juce_Socket.cpp
  9. +2
    -2
      modules/juce_core/network/juce_WebInputStream.h
  10. +1
    -1
      modules/juce_core/streams/juce_MemoryOutputStream.h
  11. +1
    -1
      modules/juce_core/text/juce_LocalisedStrings.h
  12. +1
    -1
      modules/juce_core/threads/juce_ThreadPool.h
  13. +1
    -1
      modules/juce_core/threads/juce_TimeSliceThread.h
  14. +1
    -1
      modules/juce_data_structures/values/juce_ValueTree.h
  15. +1
    -1
      modules/juce_gui_basics/native/juce_win32_FileChooser.cpp
  16. +1
    -1
      modules/juce_gui_basics/properties/juce_PropertyPanel.h
  17. +1
    -1
      modules/juce_gui_extra/native/juce_win32_WebBrowserComponent.cpp

+ 1
- 1
modules/juce_core/containers/juce_Array.h View File

@@ -30,7 +30,7 @@ namespace juce
Examples of arrays are: Array<int>, Array<Rectangle> or Array<MyClass*>
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.


+ 1
- 1
modules/juce_core/containers/juce_ArrayBase.cpp View File

@@ -304,7 +304,7 @@ public:
checkEqual (copyableContainer, noncopyableContainer, referenceContainer);
}
beginTest ("add array from initilizer list");
beginTest ("add array from initializer_list");
{
std::vector<CopyableType> referenceContainer;
ArrayBase<CopyableType, DummyCriticalSection> copyableContainer;


+ 1
- 1
modules/juce_core/containers/juce_DynamicObject.h View File

@@ -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);


+ 2
- 2
modules/juce_core/containers/juce_PropertySet.h View File

@@ -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:


+ 1
- 1
modules/juce_core/juce_core.h View File

@@ -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.


+ 1
- 1
modules/juce_core/logging/juce_FileLogger.h View File

@@ -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.


+ 1
- 1
modules/juce_core/native/juce_posix_SharedCode.h View File

@@ -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;


+ 3
- 3
modules/juce_core/network/juce_Socket.cpp View File

@@ -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;


+ 2
- 2
modules/juce_core/network/juce_WebInputStream.h View File

@@ -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


+ 1
- 1
modules/juce_core/streams/juce_MemoryOutputStream.h View File

@@ -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.


+ 1
- 1
modules/juce_core/text/juce_LocalisedStrings.h View File

@@ -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; }


+ 1
- 1
modules/juce_core/threads/juce_ThreadPool.h View File

@@ -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.


+ 1
- 1
modules/juce_core/threads/juce_TimeSliceThread.h View File

@@ -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.
*/


+ 1
- 1
modules/juce_data_structures/values/juce_ValueTree.h View File

@@ -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


+ 1
- 1
modules/juce_gui_basics/native/juce_win32_FileChooser.cpp View File

@@ -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
{


+ 1
- 1
modules/juce_gui_basics/properties/juce_PropertyPanel.h View File

@@ -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<PropertyComponent*>& newPropertyComponents,


+ 1
- 1
modules/juce_gui_extra/native/juce_win32_WebBrowserComponent.cpp View File

@@ -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;


Loading…
Cancel
Save