1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-15 00:24:19 +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

@ -78,7 +78,7 @@ public:
{
}
bool perform()
bool perform() override
{
showCorrectTab();
Component* const newComp = layout.addComponentFromXml (*xml, false);
@ -89,14 +89,14 @@ public:
return indexRef >= 0;
}
bool undo()
bool undo() override
{
showCorrectTab();
layout.removeComponent (layout.getComponent (indexRef), false);
return true;
}
int getSizeInUnits() { return 10; }
int getSizeInUnits() override { return 10; }
int& indexRef;
@ -130,14 +130,14 @@ public:
oldIndex = l.indexOfComponent (comp);
}
bool perform()
bool perform() override
{
showCorrectTab();
layout.removeComponent (getComponent(), false);
return true;
}
bool undo()
bool undo() override
{
Component* c = layout.addComponentFromXml (*xml, false);
jassert (c != nullptr);
@ -183,7 +183,7 @@ public:
oldIndex = l.indexOfComponent (comp);
}
bool perform()
bool perform() override
{
showCorrectTab();
Component* comp = layout.getComponent (oldIndex);
@ -192,7 +192,7 @@ public:
return true;
}
bool undo()
bool undo() override
{
showCorrectTab();
layout.moveComponentZOrder (newIndex, oldIndex);
@ -599,14 +599,14 @@ public:
{
}
bool perform()
bool perform() override
{
showCorrectTab();
layout.setComponentPosition (getComponent(), newPos, false);
return true;
}
bool undo()
bool undo() override
{
showCorrectTab();
layout.setComponentPosition (getComponent(), oldPos, false);
@ -630,7 +630,7 @@ public:
{
}
bool perform()
bool perform() override
{
showCorrectTab();
getComponent()->setBounds (newBounds);
@ -639,7 +639,7 @@ public:
return true;
}
bool undo()
bool undo() override
{
showCorrectTab();
getComponent()->setBounds (oldBounds);