diff options
author | SimonFJ20 <simonfromjakobsen@gmail.com> | 2022-04-13 16:15:37 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-04-13 21:24:48 +0200 |
commit | 399202f1d32c84985f3a42d8f44eb192ce17ad67 (patch) | |
tree | 92e690930c53da02462ca9135e78ab3d56fbd64d /Userland/Libraries/LibGUI/TextDocument.h | |
parent | 791e881892c7fa55b4f4ed5b885ac3f156276ca2 (diff) | |
download | serenity-399202f1d32c84985f3a42d8f44eb192ce17ad67.zip |
LibGUI: Make class final and seperate from GML Playground
Diffstat (limited to 'Userland/Libraries/LibGUI/TextDocument.h')
-rw-r--r-- | Userland/Libraries/LibGUI/TextDocument.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGUI/TextDocument.h b/Userland/Libraries/LibGUI/TextDocument.h index 48f569cac9..c024c85090 100644 --- a/Userland/Libraries/LibGUI/TextDocument.h +++ b/Userland/Libraries/LibGUI/TextDocument.h @@ -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; }; } |