[nostalgia/studio] Make UndoCommand undo/redo return ox::Error
All checks were successful
Build / build (push) Successful in 2m29s

This commit is contained in:
2024-05-23 21:29:57 -05:00
parent 7fb0549c25
commit a1c89906bd
20 changed files with 106 additions and 74 deletions

View File

@@ -19,8 +19,8 @@ class NoChangesException: public ox::Exception {
class UndoCommand {
public:
virtual ~UndoCommand() noexcept = default;
virtual void redo() noexcept = 0;
virtual void undo() noexcept = 0;
virtual ox::Error redo() noexcept = 0;
virtual ox::Error undo() noexcept = 0;
[[nodiscard]]
virtual int commandId() const noexcept = 0;
virtual bool mergeWith(UndoCommand const&cmd) noexcept;