diff --git a/extras/Demo/Source/Demos/AudioLatencyDemo.cpp b/extras/Demo/Source/Demos/AudioLatencyDemo.cpp index 8a26d6f7fd..c679caf6d5 100644 --- a/extras/Demo/Source/Demos/AudioLatencyDemo.cpp +++ b/extras/Demo/Source/Demos/AudioLatencyDemo.cpp @@ -174,7 +174,7 @@ public: private: AudioSampleBuffer testSound, recordedSound; - Array spikePositions; + Array spikePositions; int playingSampleNum, recordedSampleNum; CriticalSection lock; double sampleRate; @@ -220,14 +220,14 @@ private: const float* s = buffer.getSampleData (0, 0); const int spikeDriftAllowed = 5; - Array spikesFound; + Array spikesFound; spikesFound.ensureStorageAllocated (100); double runningAverage = 0; int lastSpike = 0; for (int i = 0; i < buffer.getNumSamples() - 10; ++i) { - const float samp = fabsf (s[i]); + const float samp = std::abs (s[i]); if (samp > runningAverage * minSpikeLevel && i > lastSpike + 20) { diff --git a/extras/Demo/Source/Demos/AudioLiveScrollingDisplay.h b/extras/Demo/Source/Demos/AudioLiveScrollingDisplay.h index 5aa6364ef3..efc704466f 100644 --- a/extras/Demo/Source/Demos/AudioLiveScrollingDisplay.h +++ b/extras/Demo/Source/Demos/AudioLiveScrollingDisplay.h @@ -68,7 +68,7 @@ public: for (int chan = 0; chan < numInputChannels; ++chan) if (inputChannelData[chan] != nullptr) - inputSample += fabsf (inputChannelData[chan][i]); // find the sum of all the channels + inputSample += std::abs (inputChannelData[chan][i]); // find the sum of all the channels pushSample (10.0f * inputSample); // boost the level to make it more easily visible. } diff --git a/extras/Demo/Source/Demos/MultithreadingDemo.cpp b/extras/Demo/Source/Demos/MultithreadingDemo.cpp index b9e28a950f..b84945f1d6 100644 --- a/extras/Demo/Source/Demos/MultithreadingDemo.cpp +++ b/extras/Demo/Source/Demos/MultithreadingDemo.cpp @@ -79,16 +79,16 @@ public: y += dy; if (x < 0) - dx = fabsf (dx); + dx = std::abs (dx); if (x > parentWidth) - dx = -fabsf (dx); + dx = -std::abs (dx); if (y < 0) - dy = fabsf (dy); + dy = std::abs (dy); if (y > parentHeight) - dy = -fabsf (dy); + dy = -std::abs (dy); setBounds (((int) x) - 2, ((int) y) - 2, diff --git a/extras/Demo/Source/MainWindow.cpp b/extras/Demo/Source/MainWindow.cpp index 8c13005e20..291694587f 100644 --- a/extras/Demo/Source/MainWindow.cpp +++ b/extras/Demo/Source/MainWindow.cpp @@ -238,7 +238,7 @@ private: return findFirstTargetParentComponent(); } - void getAllCommands (Array & commands) override + void getAllCommands (Array& commands) override { // this returns the set of all commands that this target can perform.. const CommandID ids[] = { MainAppWindow::showPreviousDemo, diff --git a/extras/audio plugin host/Source/GraphEditorPanel.cpp b/extras/audio plugin host/Source/GraphEditorPanel.cpp index ad6664ae97..12b287ab01 100644 --- a/extras/audio plugin host/Source/GraphEditorPanel.cpp +++ b/extras/audio plugin host/Source/GraphEditorPanel.cpp @@ -627,8 +627,8 @@ public: const Rectangle newBounds ((int) jmin (x1, x2) - 4, (int) jmin (y1, y2) - 4, - (int) fabsf (x1 - x2) + 8, - (int) fabsf (y1 - y2) + 8); + (int) std::abs (x1 - x2) + 8, + (int) std::abs (y1 - y2) + 8); if (newBounds != getBounds()) setBounds (newBounds); diff --git a/modules/juce_core/containers/juce_NamedValueSet.cpp b/modules/juce_core/containers/juce_NamedValueSet.cpp index 5ea71a533d..ed30af2d44 100644 --- a/modules/juce_core/containers/juce_NamedValueSet.cpp +++ b/modules/juce_core/containers/juce_NamedValueSet.cpp @@ -30,7 +30,7 @@ NamedValueSet::NamedValue::NamedValue() noexcept { } -inline NamedValueSet::NamedValue::NamedValue (const Identifier n, const var& v) +inline NamedValueSet::NamedValue::NamedValue (Identifier n, const var& v) : name (n), value (v) { } @@ -49,22 +49,22 @@ NamedValueSet::NamedValue& NamedValueSet::NamedValue::operator= (const NamedValu #if JUCE_COMPILER_SUPPORTS_MOVE_SEMANTICS NamedValueSet::NamedValue::NamedValue (NamedValue&& other) noexcept - : nextListItem (static_cast &&> (other.nextListItem)), - name (static_cast (other.name)), - value (static_cast (other.value)) + : nextListItem (static_cast&&> (other.nextListItem)), + name (static_cast (other.name)), + value (static_cast (other.value)) { } -inline NamedValueSet::NamedValue::NamedValue (const Identifier n, var&& v) - : name (n), value (static_cast (v)) +inline NamedValueSet::NamedValue::NamedValue (Identifier n, var&& v) + : name (n), value (static_cast (v)) { } NamedValueSet::NamedValue& NamedValueSet::NamedValue::operator= (NamedValue&& other) noexcept { - nextListItem = static_cast &&> (other.nextListItem); - name = static_cast (other.name); - value = static_cast (other.value); + nextListItem = static_cast&&> (other.nextListItem); + name = static_cast (other.name); + value = static_cast (other.value); return *this; } #endif @@ -268,7 +268,7 @@ void NamedValueSet::setFromXmlAttributes (const XmlElement& xml) for (int i = 0; i < numAtts; ++i) { - const String& name = xml.getAttributeName (i); + const String& name = xml.getAttributeName (i); const String& value = xml.getAttributeValue (i); if (name.startsWith ("base64:")) diff --git a/modules/juce_core/containers/juce_NamedValueSet.h b/modules/juce_core/containers/juce_NamedValueSet.h index d649847343..2ac2b86309 100644 --- a/modules/juce_core/containers/juce_NamedValueSet.h +++ b/modules/juce_core/containers/juce_NamedValueSet.h @@ -43,21 +43,21 @@ public: NamedValueSet() noexcept; /** Creates a copy of another set. */ - NamedValueSet (const NamedValueSet& other); + NamedValueSet (const NamedValueSet&); /** Replaces this set with a copy of another set. */ - NamedValueSet& operator= (const NamedValueSet& other); + NamedValueSet& operator= (const NamedValueSet&); #if JUCE_COMPILER_SUPPORTS_MOVE_SEMANTICS - NamedValueSet (NamedValueSet&& other) noexcept; - NamedValueSet& operator= (NamedValueSet&& other) noexcept; + NamedValueSet (NamedValueSet&&) noexcept; + NamedValueSet& operator= (NamedValueSet&&) noexcept; #endif /** Destructor. */ ~NamedValueSet(); - bool operator== (const NamedValueSet& other) const; - bool operator!= (const NamedValueSet& other) const; + bool operator== (const NamedValueSet&) const; + bool operator!= (const NamedValueSet&) const; //============================================================================== /** Returns the total number of values that the set contains. */ @@ -135,14 +135,14 @@ private: public: NamedValue() noexcept; NamedValue (const NamedValue&); - NamedValue (const Identifier name, const var& value); + NamedValue (Identifier, const var&); NamedValue& operator= (const NamedValue&); #if JUCE_COMPILER_SUPPORTS_MOVE_SEMANTICS NamedValue (NamedValue&&) noexcept; - NamedValue (const Identifier name, var&& value); + NamedValue (Identifier, var&&); NamedValue& operator= (NamedValue&&) noexcept; #endif - bool operator== (const NamedValue& other) const noexcept; + bool operator== (const NamedValue&) const noexcept; LinkedListPointer nextListItem; Identifier name; diff --git a/modules/juce_core/files/juce_FileSearchPath.h b/modules/juce_core/files/juce_FileSearchPath.h index fcd069310c..51baf2e77c 100644 --- a/modules/juce_core/files/juce_FileSearchPath.h +++ b/modules/juce_core/files/juce_FileSearchPath.h @@ -101,7 +101,7 @@ public: /** Merges another search path into this one. This will remove any duplicate directories. */ - void addPath (const FileSearchPath& other); + void addPath (const FileSearchPath&); /** Removes any directories that are actually subdirectories of one of the other directories in the search path. diff --git a/modules/juce_core/maths/juce_BigInteger.h b/modules/juce_core/maths/juce_BigInteger.h index c212cfd399..4c6c25c565 100644 --- a/modules/juce_core/maths/juce_BigInteger.h +++ b/modules/juce_core/maths/juce_BigInteger.h @@ -65,11 +65,11 @@ public: BigInteger (int64 value); /** Creates a copy of another BigInteger. */ - BigInteger (const BigInteger& other); + BigInteger (const BigInteger&); #if JUCE_COMPILER_SUPPORTS_MOVE_SEMANTICS - BigInteger (BigInteger&& other) noexcept; - BigInteger& operator= (BigInteger&& other) noexcept; + BigInteger (BigInteger&&) noexcept; + BigInteger& operator= (BigInteger&&) noexcept; #endif /** Destructor. */ @@ -77,10 +77,10 @@ public: //============================================================================== /** Copies another BigInteger onto this one. */ - BigInteger& operator= (const BigInteger& other); + BigInteger& operator= (const BigInteger&); /** Swaps the internal contents of this with another object. */ - void swapWith (BigInteger& other) noexcept; + void swapWith (BigInteger&) noexcept; //============================================================================== /** Returns the value of a specified bit in the number. @@ -183,14 +183,14 @@ public: //============================================================================== // All the standard arithmetic ops... - BigInteger& operator+= (const BigInteger& other); - BigInteger& operator-= (const BigInteger& other); - BigInteger& operator*= (const BigInteger& other); - BigInteger& operator/= (const BigInteger& other); - BigInteger& operator|= (const BigInteger& other); - BigInteger& operator&= (const BigInteger& other); - BigInteger& operator^= (const BigInteger& other); - BigInteger& operator%= (const BigInteger& other); + BigInteger& operator+= (const BigInteger&); + BigInteger& operator-= (const BigInteger&); + BigInteger& operator*= (const BigInteger&); + BigInteger& operator/= (const BigInteger&); + BigInteger& operator|= (const BigInteger&); + BigInteger& operator&= (const BigInteger&); + BigInteger& operator^= (const BigInteger&); + BigInteger& operator%= (const BigInteger&); BigInteger& operator<<= (int numBitsToShift); BigInteger& operator>>= (int numBitsToShift); BigInteger& operator++(); @@ -199,23 +199,23 @@ public: BigInteger operator-- (int); BigInteger operator-() const; - BigInteger operator+ (const BigInteger& other) const; - BigInteger operator- (const BigInteger& other) const; - BigInteger operator* (const BigInteger& other) const; - BigInteger operator/ (const BigInteger& other) const; - BigInteger operator| (const BigInteger& other) const; - BigInteger operator& (const BigInteger& other) const; - BigInteger operator^ (const BigInteger& other) const; - BigInteger operator% (const BigInteger& other) const; + BigInteger operator+ (const BigInteger&) const; + BigInteger operator- (const BigInteger&) const; + BigInteger operator* (const BigInteger&) const; + BigInteger operator/ (const BigInteger&) const; + BigInteger operator| (const BigInteger&) const; + BigInteger operator& (const BigInteger&) const; + BigInteger operator^ (const BigInteger&) const; + BigInteger operator% (const BigInteger&) const; BigInteger operator<< (int numBitsToShift) const; BigInteger operator>> (int numBitsToShift) const; - bool operator== (const BigInteger& other) const noexcept; - bool operator!= (const BigInteger& other) const noexcept; - bool operator< (const BigInteger& other) const noexcept; - bool operator<= (const BigInteger& other) const noexcept; - bool operator> (const BigInteger& other) const noexcept; - bool operator>= (const BigInteger& other) const noexcept; + bool operator== (const BigInteger&) const noexcept; + bool operator!= (const BigInteger&) const noexcept; + bool operator< (const BigInteger&) const noexcept; + bool operator<= (const BigInteger&) const noexcept; + bool operator> (const BigInteger&) const noexcept; + bool operator>= (const BigInteger&) const noexcept; //============================================================================== /** Does a signed comparison of two BigIntegers. @@ -243,8 +243,7 @@ public: */ void divideBy (const BigInteger& divisor, BigInteger& remainder); - /** Returns the largest value that will divide both this value and the one passed-in. - */ + /** Returns the largest value that will divide both this value and the one passed-in. */ BigInteger findGreatestCommonDivisor (BigInteger other) const; /** Performs a combined exponent and modulo operation. @@ -310,12 +309,12 @@ public: private: //============================================================================== - HeapBlock values; + HeapBlock values; size_t numValues; int highestBit; bool negative; - void ensureSize (size_t numVals); + void ensureSize (size_t); void shiftLeft (int bits, int startBit); void shiftRight (int bits, int startBit); diff --git a/modules/juce_core/maths/juce_Expression.h b/modules/juce_core/maths/juce_Expression.h index e6443c89a6..8939129093 100644 --- a/modules/juce_core/maths/juce_Expression.h +++ b/modules/juce_core/maths/juce_Expression.h @@ -59,14 +59,14 @@ public: explicit Expression (double constant); /** Creates a copy of an expression. */ - Expression (const Expression& other); + Expression (const Expression&); /** Copies another expression. */ - Expression& operator= (const Expression& other); + Expression& operator= (const Expression&); #if JUCE_COMPILER_SUPPORTS_MOVE_SEMANTICS - Expression (Expression&& other) noexcept; - Expression& operator= (Expression&& other) noexcept; + Expression (Expression&&) noexcept; + Expression& operator= (Expression&&) noexcept; #endif /** Creates an expression by parsing a string. @@ -78,14 +78,14 @@ public: /** Returns a string version of the expression. */ String toString() const; - /** Returns an expression which is an addtion operation of two existing expressions. */ - Expression operator+ (const Expression& other) const; + /** Returns an expression which is an addition operation of two existing expressions. */ + Expression operator+ (const Expression&) const; /** Returns an expression which is a subtraction operation of two existing expressions. */ - Expression operator- (const Expression& other) const; + Expression operator- (const Expression&) const; /** Returns an expression which is a multiplication operation of two existing expressions. */ - Expression operator* (const Expression& other) const; + Expression operator* (const Expression&) const; /** Returns an expression which is a division operation of two existing expressions. */ - Expression operator/ (const Expression& other) const; + Expression operator/ (const Expression&) const; /** Returns an expression which performs a negation operation on an existing expression. */ Expression operator-() const; diff --git a/modules/juce_core/network/juce_MACAddress.h b/modules/juce_core/network/juce_MACAddress.h index 0fa9d9dd2f..6356131719 100644 --- a/modules/juce_core/network/juce_MACAddress.h +++ b/modules/juce_core/network/juce_MACAddress.h @@ -51,10 +51,10 @@ public: MACAddress(); /** Creates a copy of another address. */ - MACAddress (const MACAddress& other); + MACAddress (const MACAddress&); /** Creates a copy of another address. */ - MACAddress& operator= (const MACAddress& other); + MACAddress& operator= (const MACAddress&); /** Creates an address from 6 bytes. */ explicit MACAddress (const uint8 bytes[6]); @@ -75,8 +75,8 @@ public: /** Returns true if this address is null (00-00-00-00-00-00). */ bool isNull() const noexcept; - bool operator== (const MACAddress& other) const noexcept; - bool operator!= (const MACAddress& other) const noexcept; + bool operator== (const MACAddress&) const noexcept; + bool operator!= (const MACAddress&) const noexcept; //============================================================================== private: diff --git a/modules/juce_cryptography/encryption/juce_BlowFish.h b/modules/juce_cryptography/encryption/juce_BlowFish.h index 19c9bd4d35..1b28091818 100644 --- a/modules/juce_cryptography/encryption/juce_BlowFish.h +++ b/modules/juce_cryptography/encryption/juce_BlowFish.h @@ -42,10 +42,10 @@ public: BlowFish (const void* keyData, int keyBytes); /** Creates a copy of another blowfish object. */ - BlowFish (const BlowFish& other); + BlowFish (const BlowFish&); /** Copies another blowfish object. */ - BlowFish& operator= (const BlowFish& other) noexcept; + BlowFish& operator= (const BlowFish&) noexcept; /** Destructor. */ ~BlowFish() noexcept; diff --git a/modules/juce_graphics/colour/juce_ColourGradient.h b/modules/juce_graphics/colour/juce_ColourGradient.h index ad499ce9b1..73e6631ceb 100644 --- a/modules/juce_graphics/colour/juce_ColourGradient.h +++ b/modules/juce_graphics/colour/juce_ColourGradient.h @@ -151,8 +151,8 @@ public: */ bool isRadial; - bool operator== (const ColourGradient& other) const noexcept; - bool operator!= (const ColourGradient& other) const noexcept; + bool operator== (const ColourGradient&) const noexcept; + bool operator!= (const ColourGradient&) const noexcept; private: @@ -165,14 +165,14 @@ private: : position (pos), colour (col) {} - bool operator== (const ColourPoint& other) const noexcept; - bool operator!= (const ColourPoint& other) const noexcept; + bool operator== (const ColourPoint&) const noexcept; + bool operator!= (const ColourPoint&) const noexcept; double position; Colour colour; }; - Array colours; + Array colours; JUCE_LEAK_DETECTOR (ColourGradient) }; diff --git a/modules/juce_graphics/colour/juce_FillType.h b/modules/juce_graphics/colour/juce_FillType.h index 714b20425d..19401d66ad 100644 --- a/modules/juce_graphics/colour/juce_FillType.h +++ b/modules/juce_graphics/colour/juce_FillType.h @@ -59,14 +59,14 @@ public: FillType (const Image& image, const AffineTransform& transform) noexcept; /** Creates a copy of another FillType. */ - FillType (const FillType& other); + FillType (const FillType&); /** Makes a copy of another FillType. */ - FillType& operator= (const FillType& other); + FillType& operator= (const FillType&); #if JUCE_COMPILER_SUPPORTS_MOVE_SEMANTICS - FillType (FillType&& other) noexcept; - FillType& operator= (FillType&& other) noexcept; + FillType (FillType&&) noexcept; + FillType& operator= (FillType&&) noexcept; #endif /** Destructor. */ @@ -138,8 +138,8 @@ public: AffineTransform transform; //============================================================================== - bool operator== (const FillType& other) const; - bool operator!= (const FillType& other) const; + bool operator== (const FillType&) const; + bool operator!= (const FillType&) const; private: JUCE_LEAK_DETECTOR (FillType) diff --git a/modules/juce_graphics/fonts/juce_GlyphArrangement.h b/modules/juce_graphics/fonts/juce_GlyphArrangement.h index 62b40b99b2..f11894d50c 100644 --- a/modules/juce_graphics/fonts/juce_GlyphArrangement.h +++ b/modules/juce_graphics/fonts/juce_GlyphArrangement.h @@ -44,8 +44,8 @@ public: PositionedGlyph (const Font& font, juce_wchar character, int glyphNumber, float anchorX, float baselineY, float width, bool isWhitespace); - PositionedGlyph (const PositionedGlyph& other); - PositionedGlyph& operator= (const PositionedGlyph& other); + PositionedGlyph (const PositionedGlyph&); + PositionedGlyph& operator= (const PositionedGlyph&); ~PositionedGlyph(); /** Returns the character the glyph represents. */ @@ -209,10 +209,10 @@ public: float minimumHorizontalScale = 0.7f); /** Appends another glyph arrangement to this one. */ - void addGlyphArrangement (const GlyphArrangement& other); + void addGlyphArrangement (const GlyphArrangement&); /** Appends a custom glyph to the arrangement. */ - void addGlyph (const PositionedGlyph& glyph); + void addGlyph (const PositionedGlyph&); //============================================================================== /** Draws this glyph arrangement to a graphics context. diff --git a/modules/juce_graphics/geometry/juce_EdgeTable.h b/modules/juce_graphics/geometry/juce_EdgeTable.h index 8500d073a6..d8b6d66ae1 100644 --- a/modules/juce_graphics/geometry/juce_EdgeTable.h +++ b/modules/juce_graphics/geometry/juce_EdgeTable.h @@ -62,10 +62,10 @@ public: explicit EdgeTable (const Rectangle& rectangleToAdd); /** Creates a copy of another edge table. */ - EdgeTable (const EdgeTable& other); + EdgeTable (const EdgeTable&); /** Copies from another edge table. */ - EdgeTable& operator= (const EdgeTable& other); + EdgeTable& operator= (const EdgeTable&); /** Destructor. */ ~EdgeTable(); @@ -73,7 +73,7 @@ public: //============================================================================== void clipToRectangle (const Rectangle& r); void excludeRectangle (const Rectangle& r); - void clipToEdgeTable (const EdgeTable& other); + void clipToEdgeTable (const EdgeTable&); void clipLineToMask (int x, int y, const uint8* mask, int maskStride, int numPixels); bool isEmpty() noexcept; const Rectangle& getMaximumBounds() const noexcept { return bounds; } diff --git a/modules/juce_graphics/geometry/juce_Path.h b/modules/juce_graphics/geometry/juce_Path.h index b17e704bad..f94da19fe9 100644 --- a/modules/juce_graphics/geometry/juce_Path.h +++ b/modules/juce_graphics/geometry/juce_Path.h @@ -67,21 +67,21 @@ public: Path(); /** Creates a copy of another path. */ - Path (const Path& other); + Path (const Path&); /** Destructor. */ ~Path(); /** Copies this path from another one. */ - Path& operator= (const Path& other); + Path& operator= (const Path&); #if JUCE_COMPILER_SUPPORTS_MOVE_SEMANTICS - Path (Path&& other) noexcept; - Path& operator= (Path&& other) noexcept; + Path (Path&&) noexcept; + Path& operator= (Path&&) noexcept; #endif - bool operator== (const Path& other) const noexcept; - bool operator!= (const Path& other) const noexcept; + bool operator== (const Path&) const noexcept; + bool operator!= (const Path&) const noexcept; //============================================================================== /** Returns true if the path doesn't contain any lines or curves. */ @@ -558,7 +558,7 @@ public: The internal data of the two paths is swapped over, so this is much faster than copying it to a temp variable and back. */ - void swapWithPath (Path& other) noexcept; + void swapWithPath (Path&) noexcept; //============================================================================== /** Applies a 2D transform to all the vertices in the path. diff --git a/modules/juce_graphics/images/juce_Image.h b/modules/juce_graphics/images/juce_Image.h index fdd376e0d1..0edab3dc90 100644 --- a/modules/juce_graphics/images/juce_Image.h +++ b/modules/juce_graphics/images/juce_Image.h @@ -106,7 +106,7 @@ public: point to the same shared image data. To make sure that an Image object has its own unique, unshared internal data, call duplicateIfShared(). */ - Image (const Image& other); + Image (const Image&); /** Makes this image refer to the same underlying image as another object. @@ -117,7 +117,7 @@ public: Image& operator= (const Image&); #if JUCE_COMPILER_SUPPORTS_MOVE_SEMANTICS - Image (Image&& other) noexcept; + Image (Image&&) noexcept; Image& operator= (Image&&) noexcept; #endif diff --git a/modules/juce_graphics/native/juce_mac_CoreGraphicsContext.h b/modules/juce_graphics/native/juce_mac_CoreGraphicsContext.h index 8a027c5623..bf26ce8ee2 100644 --- a/modules/juce_graphics/native/juce_mac_CoreGraphicsContext.h +++ b/modules/juce_graphics/native/juce_mac_CoreGraphicsContext.h @@ -84,7 +84,7 @@ private: struct SavedState { SavedState(); - SavedState (const SavedState& other); + SavedState (const SavedState&); ~SavedState(); void setFill (const FillType& newFill); diff --git a/modules/juce_graphics/placement/juce_RectanglePlacement.h b/modules/juce_graphics/placement/juce_RectanglePlacement.h index 122b42812d..9341e67428 100644 --- a/modules/juce_graphics/placement/juce_RectanglePlacement.h +++ b/modules/juce_graphics/placement/juce_RectanglePlacement.h @@ -45,13 +45,13 @@ public: inline RectanglePlacement() noexcept : flags (centred) {} /** Creates a copy of another RectanglePlacement object. */ - RectanglePlacement (const RectanglePlacement& other) noexcept; + RectanglePlacement (const RectanglePlacement&) noexcept; /** Copies another RectanglePlacement object. */ - RectanglePlacement& operator= (const RectanglePlacement& other) noexcept; + RectanglePlacement& operator= (const RectanglePlacement&) noexcept; - bool operator== (const RectanglePlacement& other) const noexcept; - bool operator!= (const RectanglePlacement& other) const noexcept; + bool operator== (const RectanglePlacement&) const noexcept; + bool operator!= (const RectanglePlacement&) const noexcept; //============================================================================== /** Flag values that can be combined and used in the constructor. */ diff --git a/modules/juce_gui_basics/application/juce_Application.cpp b/modules/juce_gui_basics/application/juce_Application.cpp index e96ff6870e..4e21873168 100644 --- a/modules/juce_gui_basics/application/juce_Application.cpp +++ b/modules/juce_gui_basics/application/juce_Application.cpp @@ -50,7 +50,7 @@ ApplicationCommandTarget* JUCEApplication::getNextCommandTarget() return nullptr; } -void JUCEApplication::getAllCommands (Array & commands) +void JUCEApplication::getAllCommands (Array& commands) { commands.add (StandardApplicationCommandIDs::quit); } diff --git a/modules/juce_gui_basics/application/juce_Application.h b/modules/juce_gui_basics/application/juce_Application.h index bd4f82cb96..1ffb27e676 100644 --- a/modules/juce_gui_basics/application/juce_Application.h +++ b/modules/juce_gui_basics/application/juce_Application.h @@ -176,7 +176,7 @@ public: /** @internal */ void getCommandInfo (CommandID, ApplicationCommandInfo&); /** @internal */ - void getAllCommands (Array &); + void getAllCommands (Array&); /** @internal */ bool perform (const InvocationInfo&); diff --git a/modules/juce_gui_basics/drawables/juce_DrawableComposite.h b/modules/juce_gui_basics/drawables/juce_DrawableComposite.h index 508919878b..1de9111c45 100644 --- a/modules/juce_gui_basics/drawables/juce_DrawableComposite.h +++ b/modules/juce_gui_basics/drawables/juce_DrawableComposite.h @@ -40,7 +40,7 @@ public: DrawableComposite(); /** Creates a copy of a DrawableComposite. */ - DrawableComposite (const DrawableComposite& other); + DrawableComposite (const DrawableComposite&); /** Destructor. */ ~DrawableComposite(); diff --git a/modules/juce_gui_basics/drawables/juce_DrawableImage.h b/modules/juce_gui_basics/drawables/juce_DrawableImage.h index 2ca0a35695..6089dee8a2 100644 --- a/modules/juce_gui_basics/drawables/juce_DrawableImage.h +++ b/modules/juce_gui_basics/drawables/juce_DrawableImage.h @@ -37,7 +37,7 @@ class JUCE_API DrawableImage : public Drawable public: //============================================================================== DrawableImage(); - DrawableImage (const DrawableImage& other); + DrawableImage (const DrawableImage&); /** Destructor. */ ~DrawableImage(); diff --git a/modules/juce_gui_basics/drawables/juce_DrawablePath.h b/modules/juce_gui_basics/drawables/juce_DrawablePath.h index 89a6fd3e74..bed3895d1c 100644 --- a/modules/juce_gui_basics/drawables/juce_DrawablePath.h +++ b/modules/juce_gui_basics/drawables/juce_DrawablePath.h @@ -40,7 +40,7 @@ public: //============================================================================== /** Creates a DrawablePath. */ DrawablePath(); - DrawablePath (const DrawablePath& other); + DrawablePath (const DrawablePath&); /** Destructor. */ ~DrawablePath(); diff --git a/modules/juce_gui_basics/drawables/juce_DrawableRectangle.h b/modules/juce_gui_basics/drawables/juce_DrawableRectangle.h index 8e9b799a90..9bae02e9f8 100644 --- a/modules/juce_gui_basics/drawables/juce_DrawableRectangle.h +++ b/modules/juce_gui_basics/drawables/juce_DrawableRectangle.h @@ -39,7 +39,7 @@ class JUCE_API DrawableRectangle : public DrawableShape public: //============================================================================== DrawableRectangle(); - DrawableRectangle (const DrawableRectangle& other); + DrawableRectangle (const DrawableRectangle&); /** Destructor. */ ~DrawableRectangle(); diff --git a/modules/juce_gui_basics/drawables/juce_DrawableText.h b/modules/juce_gui_basics/drawables/juce_DrawableText.h index b5e829b23c..ac44fb49f1 100644 --- a/modules/juce_gui_basics/drawables/juce_DrawableText.h +++ b/modules/juce_gui_basics/drawables/juce_DrawableText.h @@ -38,7 +38,7 @@ public: //============================================================================== /** Creates a DrawableText object. */ DrawableText(); - DrawableText (const DrawableText& other); + DrawableText (const DrawableText&); /** Destructor. */ ~DrawableText(); diff --git a/modules/juce_gui_basics/positioning/juce_MarkerList.h b/modules/juce_gui_basics/positioning/juce_MarkerList.h index 348c1b8ee2..05131e43f7 100644 --- a/modules/juce_gui_basics/positioning/juce_MarkerList.h +++ b/modules/juce_gui_basics/positioning/juce_MarkerList.h @@ -40,9 +40,9 @@ public: /** Creates an empty marker list. */ MarkerList(); /** Creates a copy of another marker list. */ - MarkerList (const MarkerList& other); + MarkerList (const MarkerList&); /** Copies another marker list to this one. */ - MarkerList& operator= (const MarkerList& other); + MarkerList& operator= (const MarkerList&); /** Destructor. */ ~MarkerList(); @@ -52,7 +52,7 @@ public: { public: /** Creates a copy of another Marker. */ - Marker (const Marker& other); + Marker (const Marker&); /** Creates a Marker with a given name and position. */ Marker (const String& name, const RelativeCoordinate& position); @@ -110,9 +110,9 @@ public: void removeMarker (const String& name); /** Returns true if all the markers in these two lists match exactly. */ - bool operator== (const MarkerList& other) const noexcept; + bool operator== (const MarkerList&) const noexcept; /** Returns true if not all the markers in these two lists match exactly. */ - bool operator!= (const MarkerList& other) const noexcept; + bool operator!= (const MarkerList&) const noexcept; //============================================================================== /** diff --git a/modules/juce_gui_basics/positioning/juce_RelativeCoordinate.h b/modules/juce_gui_basics/positioning/juce_RelativeCoordinate.h index 2e62fb0276..c1f4eb4747 100644 --- a/modules/juce_gui_basics/positioning/juce_RelativeCoordinate.h +++ b/modules/juce_gui_basics/positioning/juce_RelativeCoordinate.h @@ -39,12 +39,12 @@ public: /** Creates a zero coordinate. */ RelativeCoordinate(); RelativeCoordinate (const Expression& expression); - RelativeCoordinate (const RelativeCoordinate& other); - RelativeCoordinate& operator= (const RelativeCoordinate& other); + RelativeCoordinate (const RelativeCoordinate&); + RelativeCoordinate& operator= (const RelativeCoordinate&); #if JUCE_COMPILER_SUPPORTS_MOVE_SEMANTICS - RelativeCoordinate (RelativeCoordinate&& other) noexcept; - RelativeCoordinate& operator= (RelativeCoordinate&& other) noexcept; + RelativeCoordinate (RelativeCoordinate&&) noexcept; + RelativeCoordinate& operator= (RelativeCoordinate&&) noexcept; #endif /** Creates an absolute position from the parent origin on either the X or Y axis. @@ -63,8 +63,8 @@ public: /** Destructor. */ ~RelativeCoordinate(); - bool operator== (const RelativeCoordinate& other) const noexcept; - bool operator!= (const RelativeCoordinate& other) const noexcept; + bool operator== (const RelativeCoordinate&) const noexcept; + bool operator!= (const RelativeCoordinate&) const noexcept; //============================================================================== /** Calculates the absolute position of this coordinate. diff --git a/modules/juce_gui_basics/positioning/juce_RelativeParallelogram.h b/modules/juce_gui_basics/positioning/juce_RelativeParallelogram.h index 00a3555b24..ee426d2c4b 100644 --- a/modules/juce_gui_basics/positioning/juce_RelativeParallelogram.h +++ b/modules/juce_gui_basics/positioning/juce_RelativeParallelogram.h @@ -50,8 +50,8 @@ public: AffineTransform resetToPerpendicular (Expression::Scope* scope); bool isDynamic() const; - bool operator== (const RelativeParallelogram& other) const noexcept; - bool operator!= (const RelativeParallelogram& other) const noexcept; + bool operator== (const RelativeParallelogram&) const noexcept; + bool operator!= (const RelativeParallelogram&) const noexcept; static Point getInternalCoordForPoint (const Point* parallelogramCorners, Point point) noexcept; static Point getPointForInternalCoord (const Point* parallelogramCorners, Point internalPoint) noexcept; diff --git a/modules/juce_gui_basics/positioning/juce_RelativePoint.h b/modules/juce_gui_basics/positioning/juce_RelativePoint.h index 78c971a25a..43f7c44793 100644 --- a/modules/juce_gui_basics/positioning/juce_RelativePoint.h +++ b/modules/juce_gui_basics/positioning/juce_RelativePoint.h @@ -54,8 +54,8 @@ public: */ RelativePoint (const String& stringVersion); - bool operator== (const RelativePoint& other) const noexcept; - bool operator!= (const RelativePoint& other) const noexcept; + bool operator== (const RelativePoint&) const noexcept; + bool operator!= (const RelativePoint&) const noexcept; /** Calculates the absolute position of this point. diff --git a/modules/juce_gui_basics/positioning/juce_RelativePointPath.h b/modules/juce_gui_basics/positioning/juce_RelativePointPath.h index 8514ec2b76..d705b44d9d 100644 --- a/modules/juce_gui_basics/positioning/juce_RelativePointPath.h +++ b/modules/juce_gui_basics/positioning/juce_RelativePointPath.h @@ -40,12 +40,12 @@ class JUCE_API RelativePointPath public: //============================================================================== RelativePointPath(); - RelativePointPath (const RelativePointPath& other); + RelativePointPath (const RelativePointPath&); explicit RelativePointPath (const Path& path); ~RelativePointPath(); - bool operator== (const RelativePointPath& other) const noexcept; - bool operator!= (const RelativePointPath& other) const noexcept; + bool operator== (const RelativePointPath&) const noexcept; + bool operator!= (const RelativePointPath&) const noexcept; //============================================================================== /** Resolves this points in this path and adds them to a normal Path object. */ @@ -55,7 +55,7 @@ public: bool containsAnyDynamicPoints() const; /** Quickly swaps the contents of this path with another. */ - void swapWith (RelativePointPath& other) noexcept; + void swapWith (RelativePointPath&) noexcept; //============================================================================== /** The types of element that may be contained in this path. diff --git a/modules/juce_gui_basics/positioning/juce_RelativeRectangle.h b/modules/juce_gui_basics/positioning/juce_RelativeRectangle.h index 5d210b845b..b8afbe01a6 100644 --- a/modules/juce_gui_basics/positioning/juce_RelativeRectangle.h +++ b/modules/juce_gui_basics/positioning/juce_RelativeRectangle.h @@ -56,8 +56,8 @@ public: */ explicit RelativeRectangle (const String& stringVersion); - bool operator== (const RelativeRectangle& other) const noexcept; - bool operator!= (const RelativeRectangle& other) const noexcept; + bool operator== (const RelativeRectangle&) const noexcept; + bool operator!= (const RelativeRectangle&) const noexcept; //============================================================================== /** Calculates the absolute position of this rectangle. diff --git a/modules/juce_gui_extra/code_editor/juce_CodeDocument.h b/modules/juce_gui_extra/code_editor/juce_CodeDocument.h index eb4b1c4bd7..1f12137e76 100644 --- a/modules/juce_gui_extra/code_editor/juce_CodeDocument.h +++ b/modules/juce_gui_extra/code_editor/juce_CodeDocument.h @@ -93,15 +93,15 @@ public: This will copy the position, but the new object will not be set to maintain its position, even if the source object was set to do so. */ - Position (const Position& other) noexcept; + Position (const Position&) noexcept; /** Destructor. */ ~Position(); - Position& operator= (const Position& other); + Position& operator= (const Position&); - bool operator== (const Position& other) const noexcept; - bool operator!= (const Position& other) const noexcept; + bool operator== (const Position&) const noexcept; + bool operator!= (const Position&) const noexcept; /** Points this object at a new position within the document. @@ -355,8 +355,8 @@ public: { public: Iterator (const CodeDocument& document) noexcept; - Iterator (const Iterator& other) noexcept; - Iterator& operator= (const Iterator& other) noexcept; + Iterator (const Iterator&) noexcept; + Iterator& operator= (const Iterator&) noexcept; ~Iterator() noexcept; /** Reads the next character and returns it.