diff -r e1ced2523cad -r 008989bc7d6e src/edithistory.h --- a/src/edithistory.h Tue Nov 02 15:43:57 2021 +0200 +++ b/src/edithistory.h Tue Mar 01 17:00:19 2022 +0200 @@ -23,6 +23,7 @@ class AbstractHistoryEntry { public: + virtual ~AbstractHistoryEntry(); virtual void undo(Model::EditContext& editContext) = 0; virtual void redo(Model::EditContext& editContext) = 0; }; @@ -57,6 +58,7 @@ void undo(Model::EditContext& editContext) override; void redo(Model::EditContext& editContext) override; private: + void doUndoRedo(Model::EditContext &editContext, QByteArray& state); int position; QByteArray stateBefore; QByteArray stateAfter; @@ -97,4 +99,4 @@ std::vector changesets; std::size_t position = 0; bool changesetOpen = false; -}; \ No newline at end of file +};