1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-05 03:50:07 +00:00

Warnings: Add missing overrides

This commit is contained in:
reuk 2024-01-24 12:00:28 +00:00
parent 6c32c4df87
commit 047448fbce
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C
84 changed files with 630 additions and 627 deletions

View file

@ -690,7 +690,7 @@ struct MenuPage final : public Component
{
void drawPopupMenuColumnSeparatorWithOptions (Graphics& g,
const Rectangle<int>& bounds,
const PopupMenu::Options& opt)
const PopupMenu::Options& opt) override
{
if (auto* target = opt.getTargetComponent())
{
@ -708,7 +708,7 @@ struct MenuPage final : public Component
}
}
void drawPopupMenuBackgroundWithOptions (Graphics& g, int, int, const PopupMenu::Options& opt)
void drawPopupMenuBackgroundWithOptions (Graphics& g, int, int, const PopupMenu::Options& opt) override
{
if (auto* target = opt.getTargetComponent())
{
@ -717,7 +717,7 @@ struct MenuPage final : public Component
}
// Return the amount of space that should be left between popup menu columns.
int getPopupMenuColumnSeparatorWidthWithOptions (const PopupMenu::Options&)
int getPopupMenuColumnSeparatorWidthWithOptions (const PopupMenu::Options&) override
{
return 10;
}

View file

@ -57,7 +57,7 @@ public:
: DocumentWindow (name, backgroundColour, buttonsNeeded)
{}
void closeButtonPressed()
void closeButtonPressed() override
{
delete this;
}
@ -81,12 +81,12 @@ public:
setContentOwned (&selector, false);
}
~ColourSelectorWindow()
~ColourSelectorWindow() override
{
selector.removeChangeListener (this);
}
void closeButtonPressed()
void closeButtonPressed() override
{
delete this;
}
@ -96,7 +96,7 @@ private:
| ColourSelector::showSliders
| ColourSelector::showColourspace };
void changeListenerCallback (ChangeBroadcaster* source)
void changeListenerCallback (ChangeBroadcaster* source) override
{
if (source == &selector)
setBackgroundColour (selector.getCurrentColour());

View file

@ -79,8 +79,8 @@ struct Settings
struct Test
{
Test() {}
virtual ~Test() {}
Test() = default;
virtual ~Test() = default;
virtual void Keyboard (unsigned char /*key*/) {}
virtual void KeyboardUp (unsigned char /*key*/) {}
@ -88,7 +88,7 @@ struct Test
std::unique_ptr<b2World> m_world { new b2World (b2Vec2 (0.0f, -10.0f)) };
};
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wimplicit-int-float-conversion")
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wimplicit-int-float-conversion", "-Wsuggest-override")
#include "../Assets/Box2DTests/AddPair.h"
#include "../Assets/Box2DTests/ApplyForce.h"