diff --git a/examples/GUI/LookAndFeelDemo.h b/examples/GUI/LookAndFeelDemo.h index 352792eb58..374b9396a0 100644 --- a/examples/GUI/LookAndFeelDemo.h +++ b/examples/GUI/LookAndFeelDemo.h @@ -152,7 +152,7 @@ struct CustomLookAndFeel : public LookAndFeel_V4 void drawLinearSliderThumb (Graphics& g, int x, int y, int width, int height, float sliderPos, float minSliderPos, float maxSliderPos, - const Slider::SliderStyle style, Slider& slider) override + Slider::SliderStyle style, Slider& slider) override { auto sliderRadius = (float) (getSliderThumbRadius (slider) - 2); @@ -194,7 +194,7 @@ struct CustomLookAndFeel : public LookAndFeel_V4 void drawLinearSlider (Graphics& g, int x, int y, int width, int height, float sliderPos, float minSliderPos, float maxSliderPos, - const Slider::SliderStyle style, Slider& slider) override + Slider::SliderStyle style, Slider& slider) override { g.fillAll (slider.findColour (Slider::backgroundColourId)); @@ -354,7 +354,7 @@ struct SquareLookAndFeel : public CustomLookAndFeel void drawLinearSliderThumb (Graphics& g, int x, int y, int width, int height, float sliderPos, float minSliderPos, float maxSliderPos, - const Slider::SliderStyle style, Slider& slider) override + Slider::SliderStyle style, Slider& slider) override { auto sliderRadius = (float) getSliderThumbRadius (slider); diff --git a/examples/Plugins/AUv3SynthPluginDemo.h b/examples/Plugins/AUv3SynthPluginDemo.h index edd1c86dba..06e60b8542 100644 --- a/examples/Plugins/AUv3SynthPluginDemo.h +++ b/examples/Plugins/AUv3SynthPluginDemo.h @@ -106,7 +106,7 @@ public: //============================================================================== void drawLinearSlider (Graphics& g, int x, int y, int width, int height, float sliderPos, float minSliderPos, float maxSliderPos, - const Slider::SliderStyle style, Slider& slider) override + Slider::SliderStyle style, Slider& slider) override { ignoreUnused (style, minSliderPos, maxSliderPos); diff --git a/extras/Build/juce_build_tools/utils/juce_BuildHelperFunctions.h b/extras/Build/juce_build_tools/utils/juce_BuildHelperFunctions.h index 19e3af1367..6319c34ba8 100644 --- a/extras/Build/juce_build_tools/utils/juce_BuildHelperFunctions.h +++ b/extras/Build/juce_build_tools/utils/juce_BuildHelperFunctions.h @@ -70,7 +70,7 @@ namespace build_tools const String& utf8PointerVariable, const StringArray& strings, const StringArray& codeToExecute, - const int indentLevel); + int indentLevel); String unixStylePath (const String& path); String windowsStylePath (const String& path); diff --git a/extras/Build/juce_build_tools/utils/juce_Icons.h b/extras/Build/juce_build_tools/utils/juce_Icons.h index 892d42934d..f843b754f0 100644 --- a/extras/Build/juce_build_tools/utils/juce_Icons.h +++ b/extras/Build/juce_build_tools/utils/juce_Icons.h @@ -40,7 +40,7 @@ namespace build_tools Image getBestIconForSize (const Icons& icons, int size, bool returnNullIfNothingBigEnough); - Image rescaleImageForIcon (Drawable& d, const int size); + Image rescaleImageForIcon (Drawable& d, int size); RelativePath createXcassetsFolderFromIcons (const Icons& icons, const File& targetFolder, diff --git a/extras/Projucer/Source/ComponentEditor/Components/jucer_ComponentTypeHandler.h b/extras/Projucer/Source/ComponentEditor/Components/jucer_ComponentTypeHandler.h index b4f0f15543..566652ffa2 100644 --- a/extras/Projucer/Source/ComponentEditor/Components/jucer_ComponentTypeHandler.h +++ b/extras/Projucer/Source/ComponentEditor/Components/jucer_ComponentTypeHandler.h @@ -120,7 +120,7 @@ public: int getDefaultHeight() const noexcept { return defaultHeight; } static int64 getComponentId (Component* comp); - static void setComponentId (Component* comp, const int64 newID); + static void setComponentId (Component* comp, int64 newID); static RelativePositionedRectangle getComponentPosition (Component* comp); static void setComponentPosition (Component* comp, diff --git a/extras/Projucer/Source/ComponentEditor/Documents/jucer_ButtonDocument.h b/extras/Projucer/Source/ComponentEditor/Documents/jucer_ButtonDocument.h index f1125bcda8..dfaef52e18 100644 --- a/extras/Projucer/Source/ComponentEditor/Documents/jucer_ButtonDocument.h +++ b/extras/Projucer/Source/ComponentEditor/Documents/jucer_ButtonDocument.h @@ -38,14 +38,14 @@ public: String getTypeName() const; JucerDocument* createCopy(); - Component* createTestComponent (const bool alwaysFillBackground); + Component* createTestComponent (bool alwaysFillBackground); int getNumPaintRoutines() const; StringArray getPaintRoutineNames() const; - PaintRoutine* getPaintRoutine (const int index) const; + PaintRoutine* getPaintRoutine (int index) const; - void setStatePaintRoutineEnabled (const int index, bool b); - bool isStatePaintRoutineEnabled (const int index) const; + void setStatePaintRoutineEnabled (int index, bool b); + bool isStatePaintRoutineEnabled (int index) const; int chooseBestEnabledPaintRoutine (int paintRoutineWanted) const; diff --git a/extras/Projucer/Source/ComponentEditor/Documents/jucer_ComponentDocument.h b/extras/Projucer/Source/ComponentEditor/Documents/jucer_ComponentDocument.h index afaf78fd65..cdc7286d61 100644 --- a/extras/Projucer/Source/ComponentEditor/Documents/jucer_ComponentDocument.h +++ b/extras/Projucer/Source/ComponentEditor/Documents/jucer_ComponentDocument.h @@ -38,11 +38,11 @@ public: String getTypeName() const; JucerDocument* createCopy(); - Component* createTestComponent (const bool alwaysFillBackground); + Component* createTestComponent (bool alwaysFillBackground); int getNumPaintRoutines() const { return 1; } StringArray getPaintRoutineNames() const { return StringArray ("Graphics"); } - PaintRoutine* getPaintRoutine (const int index) const { return index == 0 ? backgroundGraphics.get() : nullptr; } + PaintRoutine* getPaintRoutine (int index) const { return index == 0 ? backgroundGraphics.get() : nullptr; } ComponentLayout* getComponentLayout() const { return components.get(); } diff --git a/extras/Projucer/Source/ComponentEditor/PaintElements/jucer_ColouredElement.cpp b/extras/Projucer/Source/ComponentEditor/PaintElements/jucer_ColouredElement.cpp index 97e4ec981b..b2c4bfc19a 100644 --- a/extras/Projucer/Source/ComponentEditor/PaintElements/jucer_ColouredElement.cpp +++ b/extras/Projucer/Source/ComponentEditor/PaintElements/jucer_ColouredElement.cpp @@ -167,8 +167,8 @@ public: ElementFillPositionProperty (ColouredElement* const owner_, const String& name, ComponentPositionDimension dimension_, - const bool isStart_, - const bool isForStroke_) + bool isStart_, + bool isForStroke_) : PositionPropertyBase (owner_, name, dimension_, false, false, owner_->getDocument()->getComponentLayout()), listener (owner_), diff --git a/extras/Projucer/Source/ComponentEditor/PaintElements/jucer_ColouredElement.h b/extras/Projucer/Source/ComponentEditor/PaintElements/jucer_ColouredElement.h index eb86dcb742..b935c5c1e0 100644 --- a/extras/Projucer/Source/ComponentEditor/PaintElements/jucer_ColouredElement.h +++ b/extras/Projucer/Source/ComponentEditor/PaintElements/jucer_ColouredElement.h @@ -39,8 +39,8 @@ class ColouredElement : public PaintElement public: ColouredElement (PaintRoutine* owner, const String& name, - const bool showOutline_, - const bool showJointAndEnd_); + bool showOutline_, + bool showJointAndEnd_); ~ColouredElement() override; @@ -50,18 +50,18 @@ public: //============================================================================== const JucerFillType& getFillType() noexcept; - void setFillType (const JucerFillType& newType, const bool undoable); + void setFillType (const JucerFillType& newType, bool undoable); bool isStrokeEnabled() const noexcept; - void enableStroke (bool enable, const bool undoable); + void enableStroke (bool enable, bool undoable); const StrokeType& getStrokeType() noexcept; - void setStrokeType (const PathStrokeType& newType, const bool undoable); - void setStrokeFill (const JucerFillType& newType, const bool undoable); + void setStrokeType (const PathStrokeType& newType, bool undoable); + void setStrokeFill (const JucerFillType& newType, bool undoable); //============================================================================== Rectangle getCurrentBounds (const Rectangle& parentArea) const override; - void setCurrentBounds (const Rectangle& newBounds, const Rectangle& parentArea, const bool undoable) override; + void setCurrentBounds (const Rectangle& newBounds, const Rectangle& parentArea, bool undoable) override; void createSiblingComponents() override; diff --git a/extras/Projucer/Source/ComponentEditor/PaintElements/jucer_PaintElement.h b/extras/Projucer/Source/ComponentEditor/PaintElements/jucer_PaintElement.h index 430e13c597..c5830aca87 100644 --- a/extras/Projucer/Source/ComponentEditor/PaintElements/jucer_PaintElement.h +++ b/extras/Projucer/Source/ComponentEditor/PaintElements/jucer_PaintElement.h @@ -50,13 +50,13 @@ public: virtual void setInitialBounds (int parentWidth, int parentHeight); virtual Rectangle getCurrentBounds (const Rectangle& activeArea) const; - virtual void setCurrentBounds (const Rectangle& newBounds, const Rectangle& activeArea, const bool undoable); + virtual void setCurrentBounds (const Rectangle& newBounds, const Rectangle& activeArea, bool undoable); const RelativePositionedRectangle& getPosition() const; - void setPosition (const RelativePositionedRectangle& newPosition, const bool undoable); - void setPaintElementBounds (const Rectangle& newBounds, const bool undoable); + void setPosition (const RelativePositionedRectangle& newPosition, bool undoable); + void setPaintElementBounds (const Rectangle& newBounds, bool undoable); void setPaintElementBoundsAndProperties (PaintElement* elementToPosition, const Rectangle& newBounds, - PaintElement* referenceElement, const bool undoable); + PaintElement* referenceElement, bool undoable); void updateBounds (const Rectangle& activeArea); @@ -118,7 +118,7 @@ protected: Rectangle getCurrentAbsoluteBounds() const; void getCurrentAbsoluteBoundsDouble (double& x, double& y, double& w, double& h) const; - virtual void selectionChanged (const bool isSelected); + virtual void selectionChanged (bool isSelected); virtual void createSiblingComponents(); diff --git a/extras/Projucer/Source/ComponentEditor/PaintElements/jucer_PaintElementGroup.h b/extras/Projucer/Source/ComponentEditor/PaintElements/jucer_PaintElementGroup.h index f6e1a34e12..9aa264946c 100644 --- a/extras/Projucer/Source/ComponentEditor/PaintElements/jucer_PaintElementGroup.h +++ b/extras/Projucer/Source/ComponentEditor/PaintElements/jucer_PaintElementGroup.h @@ -35,13 +35,13 @@ public: PaintElementGroup (PaintRoutine*); ~PaintElementGroup() override; - void ungroup (const bool); + void ungroup (bool); static void groupSelected (PaintRoutine* const); int getNumElements() const noexcept; - PaintElement* getElement (const int index) const noexcept; + PaintElement* getElement (int index) const noexcept; int indexOfElement (const PaintElement* element) const noexcept; bool containsElement (const PaintElement* element) const; @@ -49,7 +49,7 @@ public: //============================================================================== void setInitialBounds (int, int) override; Rectangle getCurrentBounds (const Rectangle&) const override; - void setCurrentBounds (const Rectangle&, const Rectangle&, const bool) override; + void setCurrentBounds (const Rectangle&, const Rectangle&, bool) override; //============================================================================== void draw (Graphics&, const ComponentLayout*, const Rectangle&) override; diff --git a/extras/Projucer/Source/ComponentEditor/PaintElements/jucer_PaintElementImage.h b/extras/Projucer/Source/ComponentEditor/PaintElements/jucer_PaintElementImage.h index 3b36ebb19a..8baabd385d 100644 --- a/extras/Projucer/Source/ComponentEditor/PaintElements/jucer_PaintElementImage.h +++ b/extras/Projucer/Source/ComponentEditor/PaintElements/jucer_PaintElementImage.h @@ -65,7 +65,7 @@ public: String newResource, oldResource; }; - void setResource (const String&, const bool); + void setResource (const String&, bool); String getResource() const; @@ -73,7 +73,7 @@ public: class SetOpacityAction : public PaintElementUndoableAction { public: - SetOpacityAction (PaintElementImage* const, const double); + SetOpacityAction (PaintElementImage* const, double); bool perform(); bool undo(); @@ -82,7 +82,7 @@ public: double newOpacity, oldOpacity; }; - void setOpacity (double, const bool); + void setOpacity (double, bool); double getOpacity() const noexcept; //============================================================================== @@ -94,7 +94,7 @@ public: class SetStretchModeAction : public PaintElementUndoableAction { public: - SetStretchModeAction (PaintElementImage* const, const StretchMode); + SetStretchModeAction (PaintElementImage* const, StretchMode); bool perform(); bool undo(); @@ -105,7 +105,7 @@ public: StretchMode getStretchMode() const noexcept; - void setStretchMode (const StretchMode, const bool); + void setStretchMode (StretchMode, bool); //============================================================================== XmlElement* createXml() const override; diff --git a/extras/Projucer/Source/ComponentEditor/PaintElements/jucer_PaintElementPath.h b/extras/Projucer/Source/ComponentEditor/PaintElements/jucer_PaintElementPath.h index b2f4ad0267..5af38a7c94 100644 --- a/extras/Projucer/Source/ComponentEditor/PaintElements/jucer_PaintElementPath.h +++ b/extras/Projucer/Source/ComponentEditor/PaintElements/jucer_PaintElementPath.h @@ -47,15 +47,15 @@ public: int getNumPoints() const; - void changePointType (const Path::Iterator::PathElementType newType, + void changePointType (Path::Iterator::PathElementType newType, const Rectangle& parentArea, - const bool undoable); + bool undoable); void deleteFromPath(); void getEditableProperties (Array& props, bool multipleSelected); private: - PathPoint withChangedPointType (const Path::Iterator::PathElementType newType, + PathPoint withChangedPointType (Path::Iterator::PathElementType newType, const Rectangle& parentArea) const; }; @@ -150,7 +150,7 @@ class PathPointComponent : public ElementSiblingComponent { public: PathPointComponent (PaintElementPath* const path_, - const int index, const int pointNumber); + int index, int pointNumber); ~PathPointComponent(); diff --git a/extras/Projucer/Source/ComponentEditor/PaintElements/jucer_PaintElementRectangle.h b/extras/Projucer/Source/ComponentEditor/PaintElements/jucer_PaintElementRectangle.h index 204c0d013d..1eab0b0094 100644 --- a/extras/Projucer/Source/ComponentEditor/PaintElements/jucer_PaintElementRectangle.h +++ b/extras/Projucer/Source/ComponentEditor/PaintElements/jucer_PaintElementRectangle.h @@ -41,7 +41,7 @@ public: return PaintElement::getCurrentBounds (parentArea); // bypass the ColouredElement implementation } - void setCurrentBounds (const Rectangle& newBounds, const Rectangle& parentArea, const bool undoable) override + void setCurrentBounds (const Rectangle& newBounds, const Rectangle& parentArea, bool undoable) override { PaintElement::setCurrentBounds (newBounds, parentArea, undoable); // bypass the ColouredElement implementation } diff --git a/extras/Projucer/Source/ComponentEditor/UI/jucer_RelativePositionedRectangle.h b/extras/Projucer/Source/ComponentEditor/UI/jucer_RelativePositionedRectangle.h index 3e4299e289..e939868a23 100644 --- a/extras/Projucer/Source/ComponentEditor/UI/jucer_RelativePositionedRectangle.h +++ b/extras/Projucer/Source/ComponentEditor/UI/jucer_RelativePositionedRectangle.h @@ -220,8 +220,8 @@ public: /** Same functionality as updateFrom(), but taking doubles instead of ints. */ - void updateFromDouble (const double newX, const double newY, - const double newW, const double newH, + void updateFromDouble (double newX, double newY, + double newW, double newH, const Rectangle& target) noexcept { updatePosAndSize (x, w, newX, newW, xMode, wMode, target.getX(), target.getWidth()); @@ -334,7 +334,7 @@ public: /** Sets the raw value of the x coordinate. See getX() for the meaning of this value. */ - void setX (const double newX) noexcept { x = newX; } + void setX (double newX) noexcept { x = newX; } /** Returns the anchoring mode for the y coordinate. To change any of the modes, use setModes(). @@ -364,7 +364,7 @@ public: /** Sets the raw value of the y coordinate. See getY() for the meaning of this value. */ - void setY (const double newY) noexcept { y = newY; } + void setY (double newY) noexcept { y = newY; } /** Returns the mode used to calculate the width. To change any of the modes, use setModes(). @@ -383,7 +383,7 @@ public: See getWidth() for the details about what this value means. */ - void setWidth (const double newWidth) noexcept { w = newWidth; } + void setWidth (double newWidth) noexcept { w = newWidth; } /** Returns the mode used to calculate the height. To change any of the modes, use setModes(). @@ -402,7 +402,7 @@ public: See getHeight() for the details about what this value means. */ - void setHeight (const double newHeight) noexcept { h = newHeight; } + void setHeight (double newHeight) noexcept { h = newHeight; } //============================================================================== /** If the size and position are constance, and wouldn't be affected by changes diff --git a/extras/Projucer/Source/ComponentEditor/UI/jucer_TestComponent.h b/extras/Projucer/Source/ComponentEditor/UI/jucer_TestComponent.h index 22c1c122c4..20d22e1c44 100644 --- a/extras/Projucer/Source/ComponentEditor/UI/jucer_TestComponent.h +++ b/extras/Projucer/Source/ComponentEditor/UI/jucer_TestComponent.h @@ -34,7 +34,7 @@ public: //============================================================================== TestComponent (JucerDocument* const ownerDocument, JucerDocument* const loadedDocument, - const bool alwaysFillBackground); + bool alwaysFillBackground); ~TestComponent() override; diff --git a/extras/Projucer/Source/ComponentEditor/jucer_BinaryResources.h b/extras/Projucer/Source/ComponentEditor/jucer_BinaryResources.h index a0f32fc6eb..c987700af4 100644 --- a/extras/Projucer/Source/ComponentEditor/jucer_BinaryResources.h +++ b/extras/Projucer/Source/ComponentEditor/jucer_BinaryResources.h @@ -52,8 +52,8 @@ public: void clear(); bool add (const String& name, const File& file); void add (const String& name, const String& originalFileName, const MemoryBlock& data); - void remove (const int index); - bool reload (const int index); + void remove (int index); + bool reload (int index); void browseForResource (const String& title, const String& wildcard, const File& fileToStartFrom, const String& resourceToReplace, std::function callback); diff --git a/extras/Projucer/Source/ComponentEditor/jucer_ComponentLayout.h b/extras/Projucer/Source/ComponentEditor/jucer_ComponentLayout.h index 111f5b07d9..b97bb3ec41 100644 --- a/extras/Projucer/Source/ComponentEditor/jucer_ComponentLayout.h +++ b/extras/Projucer/Source/ComponentEditor/jucer_ComponentLayout.h @@ -50,20 +50,20 @@ public: //============================================================================== void clearComponents(); - void removeComponent (Component* comp, const bool undoable); + void removeComponent (Component* comp, bool undoable); Component* addNewComponent (ComponentTypeHandler* const type, int x, int y); - Component* addComponentFromXml (const XmlElement& xml, const bool undoable); + Component* addComponentFromXml (const XmlElement& xml, bool undoable); - Component* findComponentWithId (const int64 componentId) const; + Component* findComponentWithId (int64 componentId) const; //============================================================================== - void componentToFront (Component* comp, const bool undoable); - void componentToBack (Component* comp, const bool undoable); + void componentToFront (Component* comp, bool undoable); + void componentToBack (Component* comp, bool undoable); - void setComponentPosition (Component* comp, const RelativePositionedRectangle& newPos, const bool undoable); - void setComponentBoundsAndProperties (Component* comp, const Rectangle& newBounds, Component* referenceComponent, const bool undoable); - void updateStoredComponentPosition (Component* comp, const bool undoable); + void setComponentPosition (Component* comp, const RelativePositionedRectangle& newPos, bool undoable); + void setComponentBoundsAndProperties (Component* comp, const Rectangle& newBounds, Component* referenceComponent, bool undoable); + void updateStoredComponentPosition (Component* comp, bool undoable); //============================================================================== Component* getComponentRelativePosTarget (Component* comp, int whichDimension) const; diff --git a/extras/Projucer/Source/ComponentEditor/jucer_GeneratedCode.h b/extras/Projucer/Source/ComponentEditor/jucer_GeneratedCode.h index e0631342e6..d2e10f8fa0 100644 --- a/extras/Projucer/Source/ComponentEditor/jucer_GeneratedCode.h +++ b/extras/Projucer/Source/ComponentEditor/jucer_GeneratedCode.h @@ -74,7 +74,7 @@ public: String& getCallbackCode (const String& requiredParentClass, const String& returnType, const String& prototype, - const bool hasPrePostUserSections); + bool hasPrePostUserSections); void removeCallback (const String& returnType, const String& prototype); diff --git a/extras/Projucer/Source/ComponentEditor/jucer_JucerDocument.h b/extras/Projucer/Source/ComponentEditor/jucer_JucerDocument.h index bcc399fcd3..045781a0a9 100644 --- a/extras/Projucer/Source/ComponentEditor/jucer_JucerDocument.h +++ b/extras/Projucer/Source/ComponentEditor/jucer_JucerDocument.h @@ -83,7 +83,7 @@ public: String getVariableInitialisers() const { return variableInitialisers; } void setVariableInitialisers (const String& newInitlialisers); - void setFixedSize (const bool isFixed); + void setFixedSize (bool isFixed); bool isFixedSize() const noexcept { return fixedSize; } void setInitialSize (int w, int h); @@ -94,9 +94,9 @@ public: //============================================================================== virtual int getNumPaintRoutines() const = 0; virtual StringArray getPaintRoutineNames() const = 0; - virtual PaintRoutine* getPaintRoutine (const int index) const = 0; + virtual PaintRoutine* getPaintRoutine (int index) const = 0; virtual ComponentLayout* getComponentLayout() const = 0; - virtual Component* createTestComponent (const bool alwaysFillBackground) = 0; + virtual Component* createTestComponent (bool alwaysFillBackground) = 0; virtual void addExtraClassProperties (PropertyPanel&); //============================================================================== @@ -105,23 +105,23 @@ public: StringArray& methods, StringArray& initialContents) const; - void setOptionalMethodEnabled (const String& methodSignature, const bool enable); + void setOptionalMethodEnabled (const String& methodSignature, bool enable); bool isOptionalMethodEnabled (const String& methodSignature) const noexcept; //============================================================================== BinaryResources& getResources() noexcept { return resources; } //============================================================================== - void setSnappingGrid (const int numPixels, const bool active, const bool shown); + void setSnappingGrid (int numPixels, bool active, const bool shown); int getSnappingGridSize() const noexcept { return snapGridPixels; } - bool isSnapActive (const bool disableIfCtrlKeyDown) const noexcept; + bool isSnapActive (bool disableIfCtrlKeyDown) const noexcept; bool isSnapShown() const noexcept { return snapShown; } int snapPosition (int pos) const noexcept; //============================================================================== - void setComponentOverlayOpacity (const float alpha); + void setComponentOverlayOpacity (float alpha); float getComponentOverlayOpacity() const noexcept { return componentOverlayOpacity; } //============================================================================== diff --git a/extras/Projucer/Source/ComponentEditor/jucer_ObjectTypes.h b/extras/Projucer/Source/ComponentEditor/jucer_ObjectTypes.h index 6efe3e0750..465992e562 100644 --- a/extras/Projucer/Source/ComponentEditor/jucer_ObjectTypes.h +++ b/extras/Projucer/Source/ComponentEditor/jucer_ObjectTypes.h @@ -41,7 +41,7 @@ namespace ObjectTypes extern const char* const* const elementTypeNames; extern const int numElementTypes; - PaintElement* createNewElement (const int index, PaintRoutine* owner); + PaintElement* createNewElement (int index, PaintRoutine* owner); PaintElement* createNewImageElement (PaintRoutine* owner); PaintElement* createElementForXml (const XmlElement* const e, PaintRoutine* const owner); } diff --git a/extras/Projucer/Source/Project/UI/jucer_ProjectContentComponent.h b/extras/Projucer/Source/Project/UI/jucer_ProjectContentComponent.h index 179ed9b5d2..b5cbd23ca9 100644 --- a/extras/Projucer/Source/Project/UI/jucer_ProjectContentComponent.h +++ b/extras/Projucer/Source/Project/UI/jucer_ProjectContentComponent.h @@ -107,7 +107,7 @@ public: void getCommandInfo (CommandID, ApplicationCommandInfo&) override; bool perform (const InvocationInfo&) override; - bool isSaveCommand (const CommandID id); + bool isSaveCommand (CommandID); void paint (Graphics&) override; void resized() override; @@ -125,7 +125,7 @@ private: void showTranslationTool(); //============================================================================== - void showProjectPanel (const int index); + void showProjectPanel (int index); bool canSelectedProjectBeLaunch(); //============================================================================== diff --git a/extras/Projucer/Source/Utility/UI/jucer_ProjucerLookAndFeel.h b/extras/Projucer/Source/Utility/UI/jucer_ProjucerLookAndFeel.h index 1338440206..86abbd9ee0 100644 --- a/extras/Projucer/Source/Utility/UI/jucer_ProjucerLookAndFeel.h +++ b/extras/Projucer/Source/Utility/UI/jucer_ProjucerLookAndFeel.h @@ -77,8 +77,8 @@ public: ProgressBar::Style getDefaultProgressBarStyle (const ProgressBar&) override; //============================================================================== - static Path getArrowPath (Rectangle arrowZone, const int direction, - const bool filled, const Justification justification); + static Path getArrowPath (Rectangle arrowZone, int direction, + bool filled, Justification justification); static Path getChoiceComponentArrowPath (Rectangle arrowZone); static Font getPropertyComponentFont() { return { 14.0f, Font::FontStyleFlags::bold }; } diff --git a/modules/juce_audio_basics/buffers/juce_AudioDataConverters.h b/modules/juce_audio_basics/buffers/juce_AudioDataConverters.h index c59074475d..d3699f8ee2 100644 --- a/modules/juce_audio_basics/buffers/juce_AudioDataConverters.h +++ b/modules/juce_audio_basics/buffers/juce_AudioDataConverters.h @@ -279,7 +279,7 @@ public: public: inline NonInterleaved() = default; inline NonInterleaved (const NonInterleaved&) = default; - inline NonInterleaved (const int) noexcept {} + inline NonInterleaved (int) noexcept {} inline void copyFrom (const NonInterleaved&) noexcept {} template inline void advanceData (SampleFormatType& s) noexcept { s.advance(); } template inline void advanceDataBy (SampleFormatType& s, int numSamples) noexcept { s.skip (numSamples); } diff --git a/modules/juce_audio_basics/midi/ump/juce_UMPMidi1ToMidi2DefaultTranslator.h b/modules/juce_audio_basics/midi/ump/juce_UMPMidi1ToMidi2DefaultTranslator.h index b644b839e6..0d6a3631ef 100644 --- a/modules/juce_audio_basics/midi/ump/juce_UMPMidi1ToMidi2DefaultTranslator.h +++ b/modules/juce_audio_basics/midi/ump/juce_UMPMidi1ToMidi2DefaultTranslator.h @@ -134,15 +134,15 @@ private: std::byte byte2; }; - static PacketX2 processNoteOnOrOff (const HelperValues helpers); - static PacketX2 processPolyPressure (const HelperValues helpers); + static PacketX2 processNoteOnOrOff (HelperValues helpers); + static PacketX2 processPolyPressure (HelperValues helpers); - bool processControlChange (const HelperValues helpers, PacketX2& packet); + bool processControlChange (HelperValues helpers, PacketX2& packet); - PacketX2 processProgramChange (const HelperValues helpers) const; + PacketX2 processProgramChange (HelperValues helpers) const; - static PacketX2 processChannelPressure (const HelperValues helpers); - static PacketX2 processPitchBend (const HelperValues helpers); + static PacketX2 processChannelPressure (HelperValues helpers); + static PacketX2 processPitchBend (HelperValues helpers); class PnAccumulator { diff --git a/modules/juce_audio_basics/sources/juce_BufferingAudioSource.h b/modules/juce_audio_basics/sources/juce_BufferingAudioSource.h index d751ad7ab2..f11448c8b0 100644 --- a/modules/juce_audio_basics/sources/juce_BufferingAudioSource.h +++ b/modules/juce_audio_basics/sources/juce_BufferingAudioSource.h @@ -95,7 +95,7 @@ public: This is useful for offline rendering. */ - bool waitForNextAudioBlockReady (const AudioSourceChannelInfo& info, const uint32 timeout); + bool waitForNextAudioBlockReady (const AudioSourceChannelInfo& info, uint32 timeout); private: //============================================================================== diff --git a/modules/juce_audio_processors/scanning/juce_KnownPluginList.h b/modules/juce_audio_processors/scanning/juce_KnownPluginList.h index 9af96f4ace..da8b18c975 100644 --- a/modules/juce_audio_processors/scanning/juce_KnownPluginList.h +++ b/modules/juce_audio_processors/scanning/juce_KnownPluginList.h @@ -224,7 +224,7 @@ public: // to store the plug-in list at a point in time and use it when calling these methods. [[deprecated]] void addToMenu (PopupMenu& menu, SortMethod sortMethod, const String& currentlyTickedPluginID = {}) const; [[deprecated]] int getIndexChosenByMenu (int menuResultCode) const; - [[deprecated]] std::unique_ptr createTree (const SortMethod sortMethod) const; + [[deprecated]] std::unique_ptr createTree (SortMethod sortMethod) const; #endif private: diff --git a/modules/juce_audio_utils/audio_cd/juce_AudioCDBurner.h b/modules/juce_audio_utils/audio_cd/juce_AudioCDBurner.h index 41135b9508..04e548ec9b 100644 --- a/modules/juce_audio_utils/audio_cd/juce_AudioCDBurner.h +++ b/modules/juce_audio_utils/audio_cd/juce_AudioCDBurner.h @@ -48,7 +48,7 @@ public: The deviceIndex is an index into the array returned by findAvailableDevices(). */ - static AudioCDBurner* openDevice (const int deviceIndex); + static AudioCDBurner* openDevice (int deviceIndex); /** Destructor. */ ~AudioCDBurner(); @@ -158,7 +158,7 @@ public: private: //============================================================================== - AudioCDBurner (const int deviceIndex); + AudioCDBurner (int deviceIndex); class Pimpl; std::unique_ptr pimpl; diff --git a/modules/juce_audio_utils/audio_cd/juce_AudioCDReader.h b/modules/juce_audio_utils/audio_cd/juce_AudioCDReader.h index 8f2277cf17..ff295ec3e1 100644 --- a/modules/juce_audio_utils/audio_cd/juce_AudioCDReader.h +++ b/modules/juce_audio_utils/audio_cd/juce_AudioCDReader.h @@ -61,7 +61,7 @@ public: @returns a new AudioCDReader object, or nullptr if it couldn't be created. The caller will be responsible for deleting the object returned. */ - static AudioCDReader* createReaderForCD (const int index); + static AudioCDReader* createReaderForCD (int index); //============================================================================== /** Destructor. */ @@ -126,7 +126,7 @@ public: @returns an array of sample positions of any index points found (not including the index that marks the start of the track) */ - Array findIndexesInTrack (const int trackNumber); + Array findIndexesInTrack (int trackNumber); /** Returns the CDDB id number for the CD. It's not a great way of identifying a disc, but it's traditional. diff --git a/modules/juce_core/memory/juce_MemoryBlock.h b/modules/juce_core/memory/juce_MemoryBlock.h index 0a2d1fd972..e431bfce34 100644 --- a/modules/juce_core/memory/juce_MemoryBlock.h +++ b/modules/juce_core/memory/juce_MemoryBlock.h @@ -41,7 +41,7 @@ public: @param initialSize the size of block to create @param initialiseToZero whether to clear the memory or just leave it uninitialised */ - MemoryBlock (const size_t initialSize, + MemoryBlock (size_t initialSize, bool initialiseToZero = false); /** Creates a copy of another memory block. */ @@ -138,7 +138,7 @@ public: uninitialised @see ensureSize */ - void setSize (const size_t newSize, + void setSize (size_t newSize, bool initialiseNewSpaceToZero = false); /** Increases the block's size only if it's smaller than a given size. @@ -150,7 +150,7 @@ public: uninitialised @see setSize */ - void ensureSize (const size_t minimumSize, + void ensureSize (size_t minimumSize, bool initialiseNewSpaceToZero = false); /** Frees all the blocks data, setting its size to 0. */ diff --git a/modules/juce_core/time/juce_Time.cpp b/modules/juce_core/time/juce_Time.cpp index 72dd854b25..f2032e272f 100644 --- a/modules/juce_core/time/juce_Time.cpp +++ b/modules/juce_core/time/juce_Time.cpp @@ -568,7 +568,8 @@ Time& Time::operator-= (RelativeTime delta) noexcept { millisSinceEpoc Time operator+ (Time time, RelativeTime delta) noexcept { Time t (time); return t += delta; } Time operator- (Time time, RelativeTime delta) noexcept { Time t (time); return t -= delta; } Time operator+ (RelativeTime delta, Time time) noexcept { Time t (time); return t += delta; } -const RelativeTime operator- (Time time1, Time time2) noexcept { return RelativeTime::milliseconds (time1.toMilliseconds() - time2.toMilliseconds()); } + +RelativeTime operator- (Time time1, Time time2) noexcept { return RelativeTime::milliseconds (time1.toMilliseconds() - time2.toMilliseconds()); } bool operator== (Time time1, Time time2) noexcept { return time1.toMilliseconds() == time2.toMilliseconds(); } bool operator!= (Time time1, Time time2) noexcept { return time1.toMilliseconds() != time2.toMilliseconds(); } diff --git a/modules/juce_core/time/juce_Time.h b/modules/juce_core/time/juce_Time.h index 1c8bf3ebbc..295a54a3f2 100644 --- a/modules/juce_core/time/juce_Time.h +++ b/modules/juce_core/time/juce_Time.h @@ -383,7 +383,7 @@ JUCE_API Time operator+ (RelativeTime delta, Time time) noexcept; /** Subtracts a RelativeTime from a Time. */ JUCE_API Time operator- (Time time, RelativeTime delta) noexcept; /** Returns the relative time difference between two times. */ -JUCE_API const RelativeTime operator- (Time time1, Time time2) noexcept; +JUCE_API RelativeTime operator- (Time time1, Time time2) noexcept; /** Compares two Time objects. */ JUCE_API bool operator== (Time time1, Time time2) noexcept; diff --git a/modules/juce_graphics/contexts/juce_GraphicsContext.h b/modules/juce_graphics/contexts/juce_GraphicsContext.h index 71cfec5358..3cd2c507c2 100644 --- a/modules/juce_graphics/contexts/juce_GraphicsContext.h +++ b/modules/juce_graphics/contexts/juce_GraphicsContext.h @@ -469,7 +469,7 @@ public: By default a Graphics object will be set to mediumRenderingQuality. @see Graphics::drawImage, Graphics::drawImageTransformed, Graphics::drawImageWithin */ - void setImageResamplingQuality (const ResamplingQuality newQuality); + void setImageResamplingQuality (ResamplingQuality newQuality); /** Draws an image. diff --git a/modules/juce_graphics/contexts/juce_LowLevelGraphicsPostScriptRenderer.h b/modules/juce_graphics/contexts/juce_LowLevelGraphicsPostScriptRenderer.h index 2ce23137ad..7c6ca2d90f 100644 --- a/modules/juce_graphics/contexts/juce_LowLevelGraphicsPostScriptRenderer.h +++ b/modules/juce_graphics/contexts/juce_LowLevelGraphicsPostScriptRenderer.h @@ -75,7 +75,7 @@ public: void fillRectList (const RectangleList&) override; void fillPath (const Path&, const AffineTransform&) override; void drawImage (const Image&, const AffineTransform&) override; - void drawLine (const Line &) override; + void drawLine (const Line&) override; //============================================================================== const Font& getFont() override; diff --git a/modules/juce_graphics/fonts/juce_CustomTypeface.h b/modules/juce_graphics/fonts/juce_CustomTypeface.h index 75653f034b..875145aff4 100644 --- a/modules/juce_graphics/fonts/juce_CustomTypeface.h +++ b/modules/juce_graphics/fonts/juce_CustomTypeface.h @@ -157,7 +157,7 @@ private: OwnedArray glyphs; short lookupTable[128]; - GlyphInfo* findGlyph (const juce_wchar character, bool loadIfNeeded) noexcept; + GlyphInfo* findGlyph (juce_wchar character, bool loadIfNeeded) noexcept; JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (CustomTypeface) }; diff --git a/modules/juce_graphics/geometry/juce_Path.h b/modules/juce_graphics/geometry/juce_Path.h index 849dad2c26..a85eb79956 100644 --- a/modules/juce_graphics/geometry/juce_Path.h +++ b/modules/juce_graphics/geometry/juce_Path.h @@ -575,9 +575,9 @@ public: */ void addBubble (Rectangle bodyArea, Rectangle maximumArea, - const Point arrowTipPosition, - const float cornerSize, - const float arrowBaseWidth); + Point arrowTipPosition, + float cornerSize, + float arrowBaseWidth); /** Adds another path to this one. diff --git a/modules/juce_gui_basics/commands/juce_ApplicationCommandTarget.h b/modules/juce_gui_basics/commands/juce_ApplicationCommandTarget.h index 0c6c2045a7..e174d63e8e 100644 --- a/modules/juce_gui_basics/commands/juce_ApplicationCommandTarget.h +++ b/modules/juce_gui_basics/commands/juce_ApplicationCommandTarget.h @@ -60,7 +60,7 @@ public: struct JUCE_API InvocationInfo { //============================================================================== - InvocationInfo (const CommandID commandID); + InvocationInfo (CommandID commandID); //============================================================================== /** The UID of the command that should be performed. */ @@ -195,15 +195,15 @@ public: @see perform, ApplicationCommandManager::invoke */ bool invoke (const InvocationInfo& invocationInfo, - const bool asynchronously); + bool asynchronously); /** Invokes a given command directly on this target. This is just an easy way to call invoke() without having to fill out the InvocationInfo structure. */ - bool invokeDirectly (const CommandID commandID, - const bool asynchronously); + bool invokeDirectly (CommandID commandID, + bool asynchronously); //============================================================================== /** Searches this target and all subsequent ones for the first one that can handle @@ -212,14 +212,14 @@ public: This will use getNextCommandTarget() to determine the chain of targets to try after this one. */ - ApplicationCommandTarget* getTargetForCommand (const CommandID commandID); + ApplicationCommandTarget* getTargetForCommand (CommandID commandID); /** Checks whether this command can currently be performed by this target. This will return true only if a call to getCommandInfo() doesn't set the isDisabled flag to indicate that the command is inactive. */ - bool isCommandActive (const CommandID commandID); + bool isCommandActive (CommandID commandID); /** If this object is a Component, this method will search upwards in its current UI hierarchy for the next parent component that implements the diff --git a/modules/juce_gui_basics/commands/juce_KeyPressMappingSet.h b/modules/juce_gui_basics/commands/juce_KeyPressMappingSet.h index c5f62b03e1..718f43120e 100644 --- a/modules/juce_gui_basics/commands/juce_KeyPressMappingSet.h +++ b/modules/juce_gui_basics/commands/juce_KeyPressMappingSet.h @@ -234,8 +234,8 @@ private: OwnedArray keysDown; - void invokeCommand (const CommandID, const KeyPress&, const bool isKeyDown, - const int millisecsSinceKeyPressed, Component* originator) const; + void invokeCommand (CommandID, const KeyPress&, bool isKeyDown, + int millisecsSinceKeyPressed, Component* originator) const; KeyPressMappingSet& operator= (const KeyPressMappingSet&); JUCE_LEAK_DETECTOR (KeyPressMappingSet) diff --git a/modules/juce_gui_basics/components/juce_Component.h b/modules/juce_gui_basics/components/juce_Component.h index e5ca03d917..d2fcb8ec55 100644 --- a/modules/juce_gui_basics/components/juce_Component.h +++ b/modules/juce_gui_basics/components/juce_Component.h @@ -2626,7 +2626,7 @@ private: void internalMouseEnter (MouseInputSource, Point, Time); void internalMouseExit (MouseInputSource, Point, Time); void internalMouseDown (MouseInputSource, const detail::PointerState&, Time); - void internalMouseUp (MouseInputSource, const detail::PointerState&, Time, const ModifierKeys oldModifiers); + void internalMouseUp (MouseInputSource, const detail::PointerState&, Time, ModifierKeys oldModifiers); void internalMouseDrag (MouseInputSource, const detail::PointerState&, Time); void internalMouseMove (MouseInputSource, Point, Time); void internalMouseWheel (MouseInputSource, Point, Time, const MouseWheelDetails&); diff --git a/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V1.h b/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V1.h index 08de34e0d7..b312341fc7 100644 --- a/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V1.h +++ b/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V1.h @@ -80,7 +80,7 @@ public: //============================================================================== void drawLinearSlider (Graphics&, int x, int y, int width, int height, float sliderPos, float minSliderPos, float maxSliderPos, - const Slider::SliderStyle, Slider&) override; + Slider::SliderStyle, Slider&) override; int getSliderThumbRadius (Slider&) override; Button* createSliderButton (Slider&, bool isIncrement) override; diff --git a/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V2.h b/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V2.h index 68174244ea..feb6aea4d6 100644 --- a/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V2.h +++ b/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V2.h @@ -243,19 +243,19 @@ public: //============================================================================== void drawLinearSlider (Graphics&, int x, int y, int width, int height, float sliderPos, float minSliderPos, float maxSliderPos, - const Slider::SliderStyle, Slider&) override; + Slider::SliderStyle, Slider&) override; void drawLinearSliderBackground (Graphics&, int x, int y, int width, int height, float sliderPos, float minSliderPos, float maxSliderPos, - const Slider::SliderStyle, Slider&) override; + Slider::SliderStyle, Slider&) override; void drawLinearSliderOutline (Graphics&, int x, int y, int width, int height, - const Slider::SliderStyle, Slider&) override; + Slider::SliderStyle, Slider&) override; void drawLinearSliderThumb (Graphics&, int x, int y, int width, int height, float sliderPos, float minSliderPos, float maxSliderPos, - const Slider::SliderStyle, Slider&) override; + Slider::SliderStyle, Slider&) override; void drawRotarySlider (Graphics&, int x, int y, int width, int height, float sliderPosProportional, float rotaryStartAngle, float rotaryEndAngle, diff --git a/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V3.h b/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V3.h index 88e896c7ca..d346405bf8 100644 --- a/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V3.h +++ b/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V3.h @@ -76,11 +76,11 @@ public: void drawLinearSlider (Graphics&, int x, int y, int width, int height, float sliderPos, float minSliderPos, float maxSliderPos, - const Slider::SliderStyle, Slider&) override; + Slider::SliderStyle, Slider&) override; void drawLinearSliderBackground (Graphics&, int x, int y, int width, int height, float sliderPos, float minSliderPos, float maxSliderPos, - const Slider::SliderStyle, Slider&) override; + Slider::SliderStyle, Slider&) override; void drawConcertinaPanelHeader (Graphics&, const Rectangle& area, bool isMouseOver, bool isMouseDown, ConcertinaPanel&, Component&) override; diff --git a/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V4.h b/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V4.h index cbf1c61d35..d3c88c5273 100644 --- a/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V4.h +++ b/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V4.h @@ -201,7 +201,7 @@ public: void drawLinearSlider (Graphics&, int x, int y, int width, int height, float sliderPos, float minSliderPos, float maxSliderPos, - const Slider::SliderStyle, Slider&) override; + Slider::SliderStyle, Slider&) override; void drawRotarySlider (Graphics&, int x, int y, int width, int height, float sliderPosProportional, float rotaryStartAngle, diff --git a/modules/juce_gui_basics/widgets/juce_Slider.h b/modules/juce_gui_basics/widgets/juce_Slider.h index e6b8b1db2b..2daeda0e56 100644 --- a/modules/juce_gui_basics/widgets/juce_Slider.h +++ b/modules/juce_gui_basics/widgets/juce_Slider.h @@ -924,7 +924,7 @@ public: float sliderPos, float minSliderPos, float maxSliderPos, - const Slider::SliderStyle, + Slider::SliderStyle, Slider&) = 0; virtual void drawLinearSliderBackground (Graphics&, @@ -932,12 +932,12 @@ public: float sliderPos, float minSliderPos, float maxSliderPos, - const Slider::SliderStyle style, + Slider::SliderStyle, Slider&) = 0; virtual void drawLinearSliderOutline (Graphics&, int x, int y, int width, int height, - const Slider::SliderStyle, + Slider::SliderStyle, Slider&) = 0; virtual void drawLinearSliderThumb (Graphics&, @@ -945,7 +945,7 @@ public: float sliderPos, float minSliderPos, float maxSliderPos, - const Slider::SliderStyle, + Slider::SliderStyle, Slider&) = 0; virtual int getSliderThumbRadius (Slider&) = 0; diff --git a/modules/juce_gui_basics/widgets/juce_ToolbarItemComponent.h b/modules/juce_gui_basics/widgets/juce_ToolbarItemComponent.h index 9ba8938af4..cd2033d245 100644 --- a/modules/juce_gui_basics/widgets/juce_ToolbarItemComponent.h +++ b/modules/juce_gui_basics/widgets/juce_ToolbarItemComponent.h @@ -172,7 +172,7 @@ public: This is used by the ToolbarItemPalette and related classes for making the items draggable, and is unlikely to be of much use in end-user-code. */ - void setEditingMode (const ToolbarEditingMode newMode); + void setEditingMode (ToolbarEditingMode newMode); /** Returns the current editing mode of this component. diff --git a/modules/juce_opengl/native/juce_OpenGL_android.h b/modules/juce_opengl/native/juce_OpenGL_android.h index dc1c2aa126..dbfeff68a2 100644 --- a/modules/juce_opengl/native/juce_OpenGL_android.h +++ b/modules/juce_opengl/native/juce_OpenGL_android.h @@ -201,7 +201,7 @@ public: //============================================================================== void swapBuffers() const noexcept { eglSwapBuffers (display, surface.get()); } - bool setSwapInterval (const int) { return false; } + bool setSwapInterval (int) { return false; } int getSwapInterval() const { return 0; } //============================================================================== diff --git a/modules/juce_osc/osc/juce_OSCMessage.h b/modules/juce_osc/osc/juce_OSCMessage.h index e496289537..a71389291e 100644 --- a/modules/juce_osc/osc/juce_OSCMessage.h +++ b/modules/juce_osc/osc/juce_OSCMessage.h @@ -92,8 +92,8 @@ public: This method does not check the range and results in undefined behaviour in case i < 0 or i >= size(). */ - OSCArgument& operator[] (const int i) noexcept; - const OSCArgument& operator[] (const int i) const noexcept; + OSCArgument& operator[] (int i) noexcept; + const OSCArgument& operator[] (int i) const noexcept; /** Returns a pointer to the first OSCArgument in the OSCMessage object. This method is provided for compatibility with standard C++ iteration mechanisms.