From d7ee7fe22ddc8ac22cacd042de4dfd5a6b4bf3d3 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 28 Jun 2020 07:07:22 -0400 Subject: [PATCH] CCloneSelectionCommand: Make use of override --- src/Editor/Undo/CCloneSelectionCommand.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Editor/Undo/CCloneSelectionCommand.h b/src/Editor/Undo/CCloneSelectionCommand.h index dc2aa2b9..cb1bc035 100644 --- a/src/Editor/Undo/CCloneSelectionCommand.h +++ b/src/Editor/Undo/CCloneSelectionCommand.h @@ -14,10 +14,11 @@ class CCloneSelectionCommand : public IUndoCommand CInstancePtrList mLinkedInstances; public: - CCloneSelectionCommand(INodeEditor *pEditor); - void undo(); - void redo(); - bool AffectsCleanState() const { return true; } + explicit CCloneSelectionCommand(INodeEditor *pEditor); + + void undo() override; + void redo() override; + bool AffectsCleanState() const override { return true; } }; #endif // CCLONESELECTIONCOMMAND_H