mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 12:07:45 +00:00
LibGUI: Add a default virtual destructor to virtual classes
Affected classes are children of TextDocumentUndoCommand: - InsertTextCommand - RemoveTextCommand - ReplaceAllTextCommand
This commit is contained in:
parent
cb4844bf64
commit
a85223e13b
1 changed files with 3 additions and 0 deletions
|
@ -215,6 +215,7 @@ protected:
|
|||
class InsertTextCommand : public TextDocumentUndoCommand {
|
||||
public:
|
||||
InsertTextCommand(TextDocument&, String const&, TextPosition const&);
|
||||
virtual ~InsertTextCommand() = default;
|
||||
virtual void perform_formatting(TextDocument::Client const&) override;
|
||||
virtual void undo() override;
|
||||
virtual void redo() override;
|
||||
|
@ -231,6 +232,7 @@ private:
|
|||
class RemoveTextCommand : public TextDocumentUndoCommand {
|
||||
public:
|
||||
RemoveTextCommand(TextDocument&, String const&, TextRange const&);
|
||||
virtual ~RemoveTextCommand() = default;
|
||||
virtual void undo() override;
|
||||
virtual void redo() override;
|
||||
TextRange const& range() const { return m_range; }
|
||||
|
@ -246,6 +248,7 @@ class ReplaceAllTextCommand final : public GUI::TextDocumentUndoCommand {
|
|||
|
||||
public:
|
||||
ReplaceAllTextCommand(GUI::TextDocument& document, String const& text, GUI::TextRange const& range, String const& action_text);
|
||||
virtual ~ReplaceAllTextCommand() = default;
|
||||
void redo() override;
|
||||
void undo() override;
|
||||
bool merge_with(GUI::Command const&) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue