mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-27 02:20:05 +00:00
Added a couple of missing override keywords.
This commit is contained in:
parent
bbc129fb45
commit
7b42c1846a
2 changed files with 12 additions and 12 deletions
|
|
@ -723,19 +723,19 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
bool perform()
|
||||
bool perform() override
|
||||
{
|
||||
owner.insert (text, insertIndex, font, colour, 0, newCaretPos);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool undo()
|
||||
bool undo() override
|
||||
{
|
||||
owner.remove (Range<int> (insertIndex, insertIndex + text.length()), 0, oldCaretPos);
|
||||
return true;
|
||||
}
|
||||
|
||||
int getSizeInUnits()
|
||||
int getSizeInUnits() override
|
||||
{
|
||||
return text.length() + 16;
|
||||
}
|
||||
|
|
@ -767,20 +767,20 @@ public:
|
|||
removedSections.addArray (oldSections);
|
||||
}
|
||||
|
||||
bool perform()
|
||||
bool perform() override
|
||||
{
|
||||
owner.remove (range, 0, newCaretPos);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool undo()
|
||||
bool undo() override
|
||||
{
|
||||
owner.reinsert (range.getStart(), removedSections);
|
||||
owner.moveCaretTo (oldCaretPos, false);
|
||||
return true;
|
||||
}
|
||||
|
||||
int getSizeInUnits()
|
||||
int getSizeInUnits() override
|
||||
{
|
||||
int n = 16;
|
||||
for (int i = removedSections.size(); --i >= 0;)
|
||||
|
|
|
|||
|
|
@ -807,21 +807,21 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
bool perform()
|
||||
bool perform() override
|
||||
{
|
||||
owner.currentActionIndex++;
|
||||
owner.insert (text, insertPos, false);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool undo()
|
||||
bool undo() override
|
||||
{
|
||||
owner.currentActionIndex--;
|
||||
owner.remove (insertPos, insertPos + text.length(), false);
|
||||
return true;
|
||||
}
|
||||
|
||||
int getSizeInUnits() { return text.length() + 32; }
|
||||
int getSizeInUnits() override { return text.length() + 32; }
|
||||
|
||||
private:
|
||||
CodeDocument& owner;
|
||||
|
|
@ -902,21 +902,21 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
bool perform()
|
||||
bool perform() override
|
||||
{
|
||||
owner.currentActionIndex++;
|
||||
owner.remove (startPos, endPos, false);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool undo()
|
||||
bool undo() override
|
||||
{
|
||||
owner.currentActionIndex--;
|
||||
owner.insert (removedText, startPos, false);
|
||||
return true;
|
||||
}
|
||||
|
||||
int getSizeInUnits() { return (endPos - startPos) + 32; }
|
||||
int getSizeInUnits() override { return (endPos - startPos) + 32; }
|
||||
|
||||
private:
|
||||
CodeDocument& owner;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue