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:
parent
6c32c4df87
commit
047448fbce
84 changed files with 630 additions and 627 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue