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