1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-23 01:44:22 +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

@ -89,7 +89,7 @@ public:
{
}
bool perform()
bool perform() override
{
showCorrectTab();
PaintElement* newElement = routine.addElementFromXml (*xml, -1, false);
@ -100,14 +100,14 @@ public:
return indexAdded >= 0;
}
bool undo()
bool undo() override
{
showCorrectTab();
routine.removeElement (routine.getElement (indexAdded), false);
return true;
}
int getSizeInUnits() { return 10; }
int getSizeInUnits() override { return 10; }
int indexAdded;
@ -172,21 +172,21 @@ public:
oldIndex = routine.indexOfElement (element);
}
bool perform()
bool perform() override
{
showCorrectTab();
routine.removeElement (getElement(), false);
return true;
}
bool undo()
bool undo() override
{
PaintElement* newElement = routine.addElementFromXml (*xml, oldIndex, false);
showCorrectTab();
return newElement != nullptr;
}
int getSizeInUnits() { return 10; }
int getSizeInUnits() override { return 10; }
private:
std::unique_ptr<XmlElement> xml;
@ -228,7 +228,7 @@ public:
oldIndex = routine.indexOfElement (element);
}
bool perform()
bool perform() override
{
showCorrectTab();
@ -238,7 +238,7 @@ public:
return true;
}
bool undo()
bool undo() override
{
showCorrectTab();
routine.moveElementZOrder (newIndex, oldIndex);