From fb864a5cb132569018eda81e0659dba298d66194 Mon Sep 17 00:00:00 2001 From: jules Date: Mon, 11 Apr 2016 11:13:44 +0100 Subject: [PATCH] Corrected some spelling mistakes in comments --- .../LiveBuildEngine/projucer_DiagnosticMessage.h | 2 +- .../Project Saving/jucer_ProjectExport_MSVC.h | 2 +- extras/Projucer/Source/Project/jucer_Project.cpp | 13 +++++++------ .../native/juce_mac_CoreAudio.cpp | 2 +- .../juce_audio_devices/native/juce_win32_ASIO.cpp | 2 +- .../utility/juce_PluginBusUtilities.h | 2 +- .../format/juce_AudioPluginFormatManager.h | 2 +- .../format_types/juce_AudioUnitPluginFormat.mm | 2 +- .../format_types/juce_VSTPluginFormat.h | 2 +- .../processors/juce_PluginDescription.h | 2 +- .../gui/juce_MidiKeyboardComponent.h | 2 +- modules/juce_core/maths/juce_MathsFunctions.h | 2 +- modules/juce_core/maths/juce_NormalisableRange.h | 2 +- modules/juce_core/memory/juce_Atomic.h | 2 +- modules/juce_core/memory/juce_ScopedPointer.h | 2 +- modules/juce_core/network/juce_Socket.h | 2 +- modules/juce_graphics/fonts/juce_GlyphArrangement.h | 2 +- modules/juce_graphics/geometry/juce_Path.h | 4 ++-- .../juce_graphics/geometry/juce_PathStrokeType.cpp | 2 +- modules/juce_graphics/geometry/juce_Rectangle.h | 2 +- modules/juce_gui_basics/buttons/juce_Button.h | 2 +- .../commands/juce_ApplicationCommandInfo.h | 2 +- .../commands/juce_ApplicationCommandTarget.h | 2 +- modules/juce_gui_basics/components/juce_Component.h | 2 +- modules/juce_gui_basics/components/juce_Desktop.h | 2 +- .../filebrowser/juce_FileBrowserComponent.h | 2 +- .../juce_gui_basics/lookandfeel/juce_LookAndFeel.h | 2 +- modules/juce_gui_basics/menus/juce_PopupMenu.cpp | 2 +- modules/juce_gui_basics/mouse/juce_LassoComponent.h | 2 +- .../juce_gui_basics/native/juce_win32_Windowing.cpp | 4 ++-- modules/juce_gui_basics/widgets/juce_Label.h | 2 +- .../widgets/juce_TableHeaderComponent.h | 4 ++-- .../juce_gui_basics/windows/juce_ResizableWindow.h | 4 ++-- .../juce_gui_basics/windows/juce_TopLevelWindow.h | 2 +- .../juce_gui_extra/code_editor/juce_CodeDocument.h | 2 +- modules/juce_opengl/native/juce_OpenGL_android.h | 4 ++-- modules/juce_osc/osc/juce_OSCBundle.h | 2 +- modules/juce_osc/osc/juce_OSCMessage.h | 2 +- 38 files changed, 49 insertions(+), 48 deletions(-) diff --git a/extras/Projucer/Source/LiveBuildEngine/projucer_DiagnosticMessage.h b/extras/Projucer/Source/LiveBuildEngine/projucer_DiagnosticMessage.h index ec0fc57e7e..74e746a941 100644 --- a/extras/Projucer/Source/LiveBuildEngine/projucer_DiagnosticMessage.h +++ b/extras/Projucer/Source/LiveBuildEngine/projucer_DiagnosticMessage.h @@ -113,7 +113,7 @@ struct DiagnosticReceiver struct DiagnosticList { // after some research, it seems that notes never come on their own - // i.e. they always have a warning / error preceeding them + // i.e. they always have a warning / error preceding them // so we can use this to keep notes and their associated notes together // by keeping track of the last message DiagnosticMessage lastMessage; diff --git a/extras/Projucer/Source/Project Saving/jucer_ProjectExport_MSVC.h b/extras/Projucer/Source/Project Saving/jucer_ProjectExport_MSVC.h index b2901e2586..8a977f9921 100644 --- a/extras/Projucer/Source/Project Saving/jucer_ProjectExport_MSVC.h +++ b/extras/Projucer/Source/Project Saving/jucer_ProjectExport_MSVC.h @@ -903,7 +903,7 @@ protected: addFile (path, parent, projectItem.shouldBeAddedToBinaryResources() || (shouldFileBeCompiledByDefault (path) && ! projectItem.shouldBeCompiled()), - shouldFileBeCompiledByDefault (path) && (bool) projectItem.shouldUseStdCall()); + shouldFileBeCompiledByDefault (path) && projectItem.shouldUseStdCall()); } } diff --git a/extras/Projucer/Source/Project/jucer_Project.cpp b/extras/Projucer/Source/Project/jucer_Project.cpp index 40d5814d3e..29fc0ac34a 100644 --- a/extras/Projucer/Source/Project/jucer_Project.cpp +++ b/extras/Projucer/Source/Project/jucer_Project.cpp @@ -691,6 +691,7 @@ Project::Item Project::Item::findItemWithID (const String& targetId) const for (int i = getNumChildren(); --i >= 0;) { Item found (getChild(i).findItemWithID (targetId)); + if (found.isValid()) return found; } @@ -735,7 +736,7 @@ String Project::Item::getFilePath() const if (isFile()) return state [Ids::file].toString(); - return String::empty; + return String(); } File Project::Item::getFile() const @@ -1060,8 +1061,8 @@ ValueTree Project::getConfigNode() return projectRoot.getOrCreateChildWithName (Ids::JUCEOPTIONS, nullptr); } -const char* const Project::configFlagDefault = "default"; -const char* const Project::configFlagEnabled = "enabled"; +const char* const Project::configFlagDefault = "default"; +const char* const Project::configFlagEnabled = "enabled"; const char* const Project::configFlagDisabled = "disabled"; Value Project::getConfigFlag (const String& name) @@ -1114,7 +1115,7 @@ String Project::getAUMainTypeString() { if (getPluginIsSynth().getValue()) s = "kAudioUnitType_MusicDevice"; else if (getPluginWantsMidiInput().getValue()) s = "kAudioUnitType_MusicEffect"; - else s = "kAudioUnitType_Effect"; + else s = "kAudioUnitType_Effect"; } return s; @@ -1129,7 +1130,7 @@ String Project::getAUMainTypeCode() if (getPluginIsMidiEffectPlugin().getValue()) s = "aumi"; else if (getPluginIsSynth().getValue()) s = "aumu"; else if (getPluginWantsMidiInput().getValue()) s = "aumf"; - else s = "aufx"; + else s = "aufx"; } return s; @@ -1141,7 +1142,7 @@ String Project::getPluginVSTCategoryString() if (s.isEmpty()) s = static_cast (getPluginIsSynth().getValue()) ? "kPlugCategSynth" - : "kPlugCategEffect"; + : "kPlugCategEffect"; return s; } diff --git a/modules/juce_audio_devices/native/juce_mac_CoreAudio.cpp b/modules/juce_audio_devices/native/juce_mac_CoreAudio.cpp index 7a0dbf30af..39fc33c9a5 100644 --- a/modules/juce_audio_devices/native/juce_mac_CoreAudio.cpp +++ b/modules/juce_audio_devices/native/juce_mac_CoreAudio.cpp @@ -691,7 +691,7 @@ public: { const ScopedLock sl (callbackLock); } - // wait until it's definately stopped calling back.. + // wait until it's definitely stopped calling back.. for (int i = 40; --i >= 0;) { Thread::sleep (50); diff --git a/modules/juce_audio_devices/native/juce_win32_ASIO.cpp b/modules/juce_audio_devices/native/juce_win32_ASIO.cpp index a9d7714f7d..cbe963f5df 100644 --- a/modules/juce_audio_devices/native/juce_win32_ASIO.cpp +++ b/modules/juce_audio_devices/native/juce_win32_ASIO.cpp @@ -1567,7 +1567,7 @@ private: DWORD dsize = sizeof (pathName); if (RegQueryValueEx (pathKey, 0, 0, &dtype, (LPBYTE) pathName, &dsize) == ERROR_SUCCESS) - // In older code, this used to check for the existance of the file, but there are situations + // In older code, this used to check for the existence of the file, but there are situations // where our process doesn't have access to it, but where the driver still loads ok.. ok = (pathName[0] != 0); diff --git a/modules/juce_audio_plugin_client/utility/juce_PluginBusUtilities.h b/modules/juce_audio_plugin_client/utility/juce_PluginBusUtilities.h index 1603529b7f..ec7026151f 100644 --- a/modules/juce_audio_plugin_client/utility/juce_PluginBusUtilities.h +++ b/modules/juce_audio_plugin_client/utility/juce_PluginBusUtilities.h @@ -341,7 +341,7 @@ private: AudioChannelSet set; // If the plug-in does not complain about setting it's layout to an undefined layout - // then we assume that the plug-in ignores the layout alltogether + // then we assume that the plug-in ignores the layout altogether for (int i = 0; i < channelNum; ++i) set.addChannel (static_cast (pseudoChannelBitNum + i)); diff --git a/modules/juce_audio_processors/format/juce_AudioPluginFormatManager.h b/modules/juce_audio_processors/format/juce_AudioPluginFormatManager.h index 0ff4cec139..65e563f755 100644 --- a/modules/juce_audio_processors/format/juce_AudioPluginFormatManager.h +++ b/modules/juce_audio_processors/format/juce_AudioPluginFormatManager.h @@ -106,7 +106,7 @@ public: If you intend to instantiate a AudioUnit v3 plug-in then you must use this non-blocking asynchrous version - or call the synchrous method - from an auxilliary thread. + from an auxiliary thread. */ void createPluginInstanceAsync (const PluginDescription& description, double initialSampleRate, diff --git a/modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.mm b/modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.mm index b473b53909..3e56d48f0f 100644 --- a/modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.mm +++ b/modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.mm @@ -1902,7 +1902,7 @@ void AudioUnitPluginFormat::createPluginInstance (const PluginDescription& desc, } else { - String errMsg = NEEDS_TRANS ("An OS error ocurred during initialisation of the plug-in (XXX)"); + String errMsg = NEEDS_TRANS ("An OS error occurred during initialisation of the plug-in (XXX)"); originalCallback (passUserData, nullptr, errMsg.replace ("XXX", String (err))); } diff --git a/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.h b/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.h index 6f19f4c397..2cd1c99980 100644 --- a/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.h +++ b/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.h @@ -36,7 +36,7 @@ public: ~VSTPluginFormat(); //============================================================================== - /** Attempts to retreive the VSTXML data from a plugin. + /** Attempts to retrieve the VSTXML data from a plugin. Will return nullptr if the plugin isn't a VST, or if it doesn't have any VSTXML. */ static const XmlElement* getVSTXML (AudioPluginInstance* plugin); diff --git a/modules/juce_audio_processors/processors/juce_PluginDescription.h b/modules/juce_audio_processors/processors/juce_PluginDescription.h index 4b888ec10f..488a3c134e 100644 --- a/modules/juce_audio_processors/processors/juce_PluginDescription.h +++ b/modules/juce_audio_processors/processors/juce_PluginDescription.h @@ -118,7 +118,7 @@ public: given identifier string. Note that this isn't quite as simple as them just calling createIdentifierString() - and comparing the strings, because the identifers can differ (thanks to shell plug-ins). + and comparing the strings, because the identifiers can differ (thanks to shell plug-ins). */ bool matchesIdentifierString (const String& identifierString) const; diff --git a/modules/juce_audio_utils/gui/juce_MidiKeyboardComponent.h b/modules/juce_audio_utils/gui/juce_MidiKeyboardComponent.h index 0b137a3d30..11e0ac2c2c 100644 --- a/modules/juce_audio_utils/gui/juce_MidiKeyboardComponent.h +++ b/modules/juce_audio_utils/gui/juce_MidiKeyboardComponent.h @@ -362,7 +362,7 @@ protected: */ virtual void mouseUpOnKey (int midiNoteNumber, const MouseEvent& e); - /** Calculates the positon of a given midi-note. + /** Calculates the position of a given midi-note. This can be overridden to create layouts with custom key-widths. diff --git a/modules/juce_core/maths/juce_MathsFunctions.h b/modules/juce_core/maths/juce_MathsFunctions.h index de92d97182..e7a8c39bda 100644 --- a/modules/juce_core/maths/juce_MathsFunctions.h +++ b/modules/juce_core/maths/juce_MathsFunctions.h @@ -93,7 +93,7 @@ typedef unsigned int uint32; #endif //============================================================================== -// Some indispensible min/max functions +// Some indispensable min/max functions /** Returns the larger of two values. */ template diff --git a/modules/juce_core/maths/juce_NormalisableRange.h b/modules/juce_core/maths/juce_NormalisableRange.h index 150162da6c..ef06bb7be2 100644 --- a/modules/juce_core/maths/juce_NormalisableRange.h +++ b/modules/juce_core/maths/juce_NormalisableRange.h @@ -150,7 +150,7 @@ public: /** An optional skew factor that alters the way values are distribute across the range. The skew factor lets you skew the mapping logarithmically so that larger or smaller - values are given a larger proportion of the avilable space. + values are given a larger proportion of the available space. A factor of 1.0 has no skewing effect at all. If the factor is < 1.0, the lower end of the range will fill more of the slider's length; if the factor is > 1.0, the upper diff --git a/modules/juce_core/memory/juce_Atomic.h b/modules/juce_core/memory/juce_Atomic.h index 1e8a65cc44..a61b9c4145 100644 --- a/modules/juce_core/memory/juce_Atomic.h +++ b/modules/juce_core/memory/juce_Atomic.h @@ -147,7 +147,7 @@ public: #endif /** The raw value that this class operates on. - This is exposed publically in case you need to manipulate it directly + This is exposed publicly in case you need to manipulate it directly for performance reasons. */ volatile Type value; diff --git a/modules/juce_core/memory/juce_ScopedPointer.h b/modules/juce_core/memory/juce_ScopedPointer.h index 557104eeb3..6b4607728b 100644 --- a/modules/juce_core/memory/juce_ScopedPointer.h +++ b/modules/juce_core/memory/juce_ScopedPointer.h @@ -56,7 +56,7 @@ can use the release() method. Something to note is the main difference between this class and the std::auto_ptr class, - which is that ScopedPointer provides a cast-to-object operator, wheras std::auto_ptr + which is that ScopedPointer provides a cast-to-object operator, whereas std::auto_ptr requires that you always call get() to retrieve the pointer. The advantages of providing the cast is that you don't need to call get(), so can use the ScopedPointer in pretty much exactly the same way as a raw pointer. The disadvantage is that the compiler is free to diff --git a/modules/juce_core/network/juce_Socket.h b/modules/juce_core/network/juce_Socket.h index c6be4e71cd..33648bbcc8 100644 --- a/modules/juce_core/network/juce_Socket.h +++ b/modules/juce_core/network/juce_Socket.h @@ -247,7 +247,7 @@ public: This is useful if you need to know to which port the OS has actually bound your socket when bindToPort was called with zero. - Returns -1 if the socket didn't bind to any port yet or an error occured. */ + Returns -1 if the socket didn't bind to any port yet or an error occurred. */ int getBoundPort() const noexcept; /** Returns the OS's socket handle that's currently open. */ diff --git a/modules/juce_graphics/fonts/juce_GlyphArrangement.h b/modules/juce_graphics/fonts/juce_GlyphArrangement.h index 6f4243dccb..3e3def239e 100644 --- a/modules/juce_graphics/fonts/juce_GlyphArrangement.h +++ b/modules/juce_graphics/fonts/juce_GlyphArrangement.h @@ -195,7 +195,7 @@ public: float maxLineWidth, Justification horizontalLayout); - /** Tries to fit some text withing a given space. + /** Tries to fit some text within a given space. This does its best to make the given text readable within the specified rectangle, so it useful for labelling things. diff --git a/modules/juce_graphics/geometry/juce_Path.h b/modules/juce_graphics/geometry/juce_Path.h index 215314f2d4..9a0bfe7063 100644 --- a/modules/juce_graphics/geometry/juce_Path.h +++ b/modules/juce_graphics/geometry/juce_Path.h @@ -98,7 +98,7 @@ public: /** Checks whether a point lies within the path. - This is only relevent for closed paths (see closeSubPath()), and + This is only relevant for closed paths (see closeSubPath()), and may produce false results if used on a path which has open sub-paths. The path's winding rule is taken into account by this method. @@ -114,7 +114,7 @@ public: /** Checks whether a point lies within the path. - This is only relevent for closed paths (see closeSubPath()), and + This is only relevant for closed paths (see closeSubPath()), and may produce false results if used on a path which has open sub-paths. The path's winding rule is taken into account by this method. diff --git a/modules/juce_graphics/geometry/juce_PathStrokeType.cpp b/modules/juce_graphics/geometry/juce_PathStrokeType.cpp index 1923f153da..7f917f629b 100644 --- a/modules/juce_graphics/geometry/juce_PathStrokeType.cpp +++ b/modules/juce_graphics/geometry/juce_PathStrokeType.cpp @@ -316,7 +316,7 @@ namespace PathStrokeHelpers if (style == PathStrokeType::square) { - // sqaure ends + // square ends destPath.lineTo (offx1, offy1); destPath.lineTo (offx2, offy2); destPath.lineTo (x2, y2); diff --git a/modules/juce_graphics/geometry/juce_Rectangle.h b/modules/juce_graphics/geometry/juce_Rectangle.h index d3f3e7b411..8f00a8110e 100644 --- a/modules/juce_graphics/geometry/juce_Rectangle.h +++ b/modules/juce_graphics/geometry/juce_Rectangle.h @@ -773,7 +773,7 @@ public: } /** Returns the smallest integer-aligned rectangle that completely contains this one. - This is only relevent for floating-point rectangles, of course. + This is only relevant for floating-point rectangles, of course. @see toFloat(), toNearestInt() */ Rectangle getSmallestIntegerContainer() const noexcept diff --git a/modules/juce_gui_basics/buttons/juce_Button.h b/modules/juce_gui_basics/buttons/juce_Button.h index ef4a2e7d79..39d0d5a70d 100644 --- a/modules/juce_gui_basics/buttons/juce_Button.h +++ b/modules/juce_gui_basics/buttons/juce_Button.h @@ -295,7 +295,7 @@ public: E.g. if you are placing two buttons adjacent to each other, you could use this to indicate which edges are touching, and the LookAndFeel might choose to drawn them without rounded corners on the edges that connect. It's only a hint, so the - LookAndFeel can choose to ignore it if it's not relevent for this type of + LookAndFeel can choose to ignore it if it's not relevant for this type of button. */ void setConnectedEdges (int connectedEdgeFlags); diff --git a/modules/juce_gui_basics/commands/juce_ApplicationCommandInfo.h b/modules/juce_gui_basics/commands/juce_ApplicationCommandInfo.h index 04604f791a..23c571b17a 100644 --- a/modules/juce_gui_basics/commands/juce_ApplicationCommandInfo.h +++ b/modules/juce_gui_basics/commands/juce_ApplicationCommandInfo.h @@ -135,7 +135,7 @@ struct JUCE_API ApplicationCommandInfo /** Indicates that the command can't currently be performed. The ApplicationCommandTarget::getCommandInfo() method must set this flag if it's - not currently permissable to perform the command. If the flag is set, then + not currently permissible to perform the command. If the flag is set, then components that trigger the command, e.g. PopupMenu, may choose to grey-out the command or show themselves as not being enabled. diff --git a/modules/juce_gui_basics/commands/juce_ApplicationCommandTarget.h b/modules/juce_gui_basics/commands/juce_ApplicationCommandTarget.h index b65218dade..6870042fa0 100644 --- a/modules/juce_gui_basics/commands/juce_ApplicationCommandTarget.h +++ b/modules/juce_gui_basics/commands/juce_ApplicationCommandTarget.h @@ -219,7 +219,7 @@ public: */ bool isCommandActive (const CommandID commandID); - /** If this object is a Component, this method will seach upwards in its current + /** If this object is a Component, this method will search upwards in its current UI hierarchy for the next parent component that implements the ApplicationCommandTarget class. diff --git a/modules/juce_gui_basics/components/juce_Component.h b/modules/juce_gui_basics/components/juce_Component.h index ce47460bc5..486066a17a 100644 --- a/modules/juce_gui_basics/components/juce_Component.h +++ b/modules/juce_gui_basics/components/juce_Component.h @@ -2036,7 +2036,7 @@ public: look-and-feel either, it will just return black. The colour IDs for various purposes are stored as enums in the components that - they are relevent to - for an example, see Slider::ColourIds, + they are relevant to - for an example, see Slider::ColourIds, Label::ColourIds, TextEditor::ColourIds, TreeView::ColourIds, etc. @see setColour, isColourSpecified, colourChanged, LookAndFeel::findColour, LookAndFeel::setColour diff --git a/modules/juce_gui_basics/components/juce_Desktop.h b/modules/juce_gui_basics/components/juce_Desktop.h index 02657b63c5..427a247850 100644 --- a/modules/juce_gui_basics/components/juce_Desktop.h +++ b/modules/juce_gui_basics/components/juce_Desktop.h @@ -159,7 +159,7 @@ public: If allowMenusAndBars is true, things like the menu and dock (on mac) are still allowed to pop up when the mouse moves onto them. If this is false, it'll try - to hide as much on-screen paraphenalia as possible. + to hide as much on-screen paraphernalia as possible. */ void setKioskModeComponent (Component* componentToUse, bool allowMenusAndBars = true); diff --git a/modules/juce_gui_basics/filebrowser/juce_FileBrowserComponent.h b/modules/juce_gui_basics/filebrowser/juce_FileBrowserComponent.h index 284ee95b4f..b4431fbd2e 100644 --- a/modules/juce_gui_basics/filebrowser/juce_FileBrowserComponent.h +++ b/modules/juce_gui_basics/filebrowser/juce_FileBrowserComponent.h @@ -59,7 +59,7 @@ public: canSelectFiles = 4, /**< specifies that the user can select files (can be used in conjunction with canSelectDirectories). */ canSelectDirectories = 8, /**< specifies that the user can select directories (can be used in - conjuction with canSelectFiles). */ + conjunction with canSelectFiles). */ canSelectMultipleItems = 16, /**< specifies that the user can select multiple items. */ useTreeView = 32, /**< specifies that a tree-view should be shown instead of a file list. */ filenameBoxIsReadOnly = 64, /**< specifies that the user can't type directly into the filename box. */ diff --git a/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel.h b/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel.h index 3de56b3092..8332a9aba3 100644 --- a/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel.h +++ b/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel.h @@ -133,7 +133,7 @@ public: returned. If none has been set, it will just return Colours::black. The colour IDs for various purposes are stored as enums in the components that - they are relevent to - for an example, see Slider::ColourIds, + they are relevant to - for an example, see Slider::ColourIds, Label::ColourIds, TextEditor::ColourIds, TreeView::ColourIds, etc. If you're looking up a colour for use in drawing a component, it's usually diff --git a/modules/juce_gui_basics/menus/juce_PopupMenu.cpp b/modules/juce_gui_basics/menus/juce_PopupMenu.cpp index 29606eb3ec..04e437be2e 100644 --- a/modules/juce_gui_basics/menus/juce_PopupMenu.cpp +++ b/modules/juce_gui_basics/menus/juce_PopupMenu.cpp @@ -407,7 +407,7 @@ public: { // we want to dismiss the menu, but if we do it synchronously, then // the mouse-click will be allowed to pass through. That's good, except - // when the user clicks on the button that orginally popped the menu up, + // when the user clicks on the button that originally popped the menu up, // as they'll expect the menu to go away, and in fact it'll just // come back. So only dismiss synchronously if they're not on the original // comp that we're attached to. diff --git a/modules/juce_gui_basics/mouse/juce_LassoComponent.h b/modules/juce_gui_basics/mouse/juce_LassoComponent.h index 347cd4cf14..65e2f16e6c 100644 --- a/modules/juce_gui_basics/mouse/juce_LassoComponent.h +++ b/modules/juce_gui_basics/mouse/juce_LassoComponent.h @@ -44,7 +44,7 @@ public: /** Returns the set of items that lie within a given lassoable region. - Your implementation of this method must find all the relevent items that lie + Your implementation of this method must find all the relevant items that lie within the given rectangle. and add them to the itemsFound array. The coordinates are relative to the top-left of the lasso component's parent diff --git a/modules/juce_gui_basics/native/juce_win32_Windowing.cpp b/modules/juce_gui_basics/native/juce_win32_Windowing.cpp index 1935715057..862473d375 100644 --- a/modules/juce_gui_basics/native/juce_win32_Windowing.cpp +++ b/modules/juce_gui_basics/native/juce_win32_Windowing.cpp @@ -858,7 +858,7 @@ public: if (! makeActive) { - // in this case a broughttofront call won't have occured, so do it now.. + // in this case a broughttofront call won't have occurred, so do it now.. handleBroughtToFront(); } } @@ -1726,7 +1726,7 @@ private: if (registerTouchWindow == nullptr) return false; - // Relevent info about touch/pen detection flags: + // Relevant info about touch/pen detection flags: // https://msdn.microsoft.com/en-us/library/windows/desktop/ms703320(v=vs.85).aspx // http://www.petertissen.de/?p=4 diff --git a/modules/juce_gui_basics/widgets/juce_Label.h b/modules/juce_gui_basics/widgets/juce_Label.h index f73c8c98bd..8c18f690f3 100644 --- a/modules/juce_gui_basics/widgets/juce_Label.h +++ b/modules/juce_gui_basics/widgets/juce_Label.h @@ -148,7 +148,7 @@ public: /** If the label is attached to the left of another component, this returns true. - Returns false if the label is above the other component. This is only relevent if + Returns false if the label is above the other component. This is only relevant if attachToComponent() has been called. */ bool isAttachedOnLeft() const noexcept { return leftOfOwnerComp; } diff --git a/modules/juce_gui_basics/widgets/juce_TableHeaderComponent.h b/modules/juce_gui_basics/widgets/juce_TableHeaderComponent.h index d2e7695b7b..bcdca74d12 100644 --- a/modules/juce_gui_basics/widgets/juce_TableHeaderComponent.h +++ b/modules/juce_gui_basics/widgets/juce_TableHeaderComponent.h @@ -208,14 +208,14 @@ public: If there's no such column ID, this will return -1. - If onlyCountVisibleColumns is true, this will return the index amoungst the visible columns; + If onlyCountVisibleColumns is true, this will return the index amongst the visible columns; otherwise it'll return the index amongst all the columns, including any hidden ones. */ int getIndexOfColumnId (int columnId, bool onlyCountVisibleColumns) const; /** Returns the ID of the column at a given index. - If onlyCountVisibleColumns is true, this will count the index amoungst the visible columns; + If onlyCountVisibleColumns is true, this will count the index amongst the visible columns; otherwise it'll count it amongst all the columns, including any hidden ones. If the index is out-of-range, it'll return 0. diff --git a/modules/juce_gui_basics/windows/juce_ResizableWindow.h b/modules/juce_gui_basics/windows/juce_ResizableWindow.h index a8f0bf429c..c30deb0c56 100644 --- a/modules/juce_gui_basics/windows/juce_ResizableWindow.h +++ b/modules/juce_gui_basics/windows/juce_ResizableWindow.h @@ -154,7 +154,7 @@ public: /** Sets the bounds-constrainer object to use for resizing and dragging this window. A pointer to the object you pass in will be kept, but it won't be deleted - by this object, so it's the caller's responsiblity to manage it. + by this object, so it's the caller's responsibility to manage it. If you pass a nullptr, then no contraints will be placed on the positioning of the window. */ @@ -216,7 +216,7 @@ public: /** Restores the window to a previously-saved size and position. - This restores the window's size, positon and full-screen status from an + This restores the window's size, position and full-screen status from an string that was previously created with the getWindowStateAsString() method. diff --git a/modules/juce_gui_basics/windows/juce_TopLevelWindow.h b/modules/juce_gui_basics/windows/juce_TopLevelWindow.h index 2ff59e3710..2f3a60a39d 100644 --- a/modules/juce_gui_basics/windows/juce_TopLevelWindow.h +++ b/modules/juce_gui_basics/windows/juce_TopLevelWindow.h @@ -79,7 +79,7 @@ public: window. If your app has a few windows open and want to pop up a dialog box for one of - them, you can use this to show it in front of the relevent parent window, which + them, you can use this to show it in front of the relevant parent window, which is a bit neater than just having it appear in the middle of the screen. If componentToCentreAround is nullptr, then the currently active TopLevelWindow will diff --git a/modules/juce_gui_extra/code_editor/juce_CodeDocument.h b/modules/juce_gui_extra/code_editor/juce_CodeDocument.h index 80b416dbe1..a98cef7d55 100644 --- a/modules/juce_gui_extra/code_editor/juce_CodeDocument.h +++ b/modules/juce_gui_extra/code_editor/juce_CodeDocument.h @@ -142,7 +142,7 @@ public: /** Allows the position to be automatically updated when the document changes. - If this is set to true, the positon will register with its document so that + If this is set to true, the position will register with its document so that when the document has text inserted or deleted, this position will be automatically moved to keep it at the same position in the text. */ diff --git a/modules/juce_opengl/native/juce_OpenGL_android.h b/modules/juce_opengl/native/juce_OpenGL_android.h index e0ce17b958..1831aa4516 100644 --- a/modules/juce_opengl/native/juce_OpenGL_android.h +++ b/modules/juce_opengl/native/juce_OpenGL_android.h @@ -68,7 +68,7 @@ public: if (surfaceView.get() == nullptr) return; - // add the view to the view hierachy + // add the view to the view hierarchy // after this the nativecontext can receive callbacks env->CallVoidMethod ((jobject) component.getPeer()->getNativeHandle(), AndroidViewGroup.addView, surfaceView.get()); @@ -251,7 +251,7 @@ private: } //============================================================================== - bool hasInitialised, hasBeenAddedToViewHierachy; + bool hasInitialised; GlobalRef surfaceView; Rectangle lastBounds; diff --git a/modules/juce_osc/osc/juce_OSCBundle.h b/modules/juce_osc/osc/juce_OSCBundle.h index a257d50de2..3e29a25055 100644 --- a/modules/juce_osc/osc/juce_OSCBundle.h +++ b/modules/juce_osc/osc/juce_OSCBundle.h @@ -106,7 +106,7 @@ public: bool isEmpty() const noexcept { return elements.isEmpty(); } /** Returns a reference to the OSCBundle element at index i in this bundle. - This method does not check the range and results in undefined behavour + This method does not check the range and results in undefined behaviour in case i < 0 or i >= size(). */ OSCBundle::Element& operator[] (const int i) const noexcept diff --git a/modules/juce_osc/osc/juce_OSCMessage.h b/modules/juce_osc/osc/juce_OSCMessage.h index 7fb96fb9d8..82b72afb58 100644 --- a/modules/juce_osc/osc/juce_OSCMessage.h +++ b/modules/juce_osc/osc/juce_OSCMessage.h @@ -89,7 +89,7 @@ public: bool isEmpty() const noexcept; /** Returns a reference to the OSCArgument at index i in the OSCMessage object. - This method does not check the range and results in undefined behavour + This method does not check the range and results in undefined behaviour in case i < 0 or i >= size(). */ OSCArgument& operator[] (const int i) const noexcept;