LibGUI: Make class final and seperate from GML Playground

This commit is contained in:
SimonFJ20
2022-04-13 16:15:37 +02:00
committed by Andreas Kling
parent 791e881892
commit 399202f1d3
Notes: sideshowbarker 2024-07-17 11:49:41 +09:00
2 changed files with 6 additions and 4 deletions

View File

@@ -236,10 +236,10 @@ private:
TextRange m_range;
};
class ReplaceAllTextCommand : public GUI::TextDocumentUndoCommand {
class ReplaceAllTextCommand final : public GUI::TextDocumentUndoCommand {
public:
ReplaceAllTextCommand(GUI::TextDocument& document, String const& text, GUI::TextRange const& range);
ReplaceAllTextCommand(GUI::TextDocument& document, String const& text, GUI::TextRange const& range, String const& action_text);
void redo() override;
void undo() override;
bool merge_with(GUI::Command const&) override;
@@ -250,6 +250,7 @@ public:
private:
String m_text;
GUI::TextRange m_range;
String m_action_text;
};
}