1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:57:46 +00:00

LibGUI: Some tweaks for TextEditor's will-execute-command virtual

Renamed the virtual from "on_edit_action" to "will_execute" so it
doesn't clash with our convention for Function hook names.

Also tighten the parameter type to GUI::TextDocumentUndoCommand
since that's the only kind of command it will receive.
This commit is contained in:
Andreas Kling 2021-05-08 15:52:37 +02:00
parent aaa96e909b
commit 244665d99c
3 changed files with 4 additions and 5 deletions

View file

@ -41,8 +41,7 @@ public:
CodeDocument& code_document();
virtual void set_document(GUI::TextDocument&) override;
virtual void on_edit_action(const GUI::Command&) override;
virtual void will_execute(GUI::TextDocumentUndoCommand const&) override;
virtual void undo() override;
virtual void redo() override;