From 169b40567822dc2087ef2f7589ea8fa44f862313 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 3 Jul 2020 12:36:33 -0400 Subject: [PATCH] CClearSelectionCommand: Make use of override --- src/Editor/Undo/CClearSelectionCommand.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Editor/Undo/CClearSelectionCommand.h b/src/Editor/Undo/CClearSelectionCommand.h index e6d48a7c..dca76200 100644 --- a/src/Editor/Undo/CClearSelectionCommand.h +++ b/src/Editor/Undo/CClearSelectionCommand.h @@ -13,7 +13,7 @@ class CClearSelectionCommand : public IUndoCommand CNodePtrList mOldSelection; public: - CClearSelectionCommand(CNodeSelection *pSelection) + explicit CClearSelectionCommand(CNodeSelection *pSelection) : IUndoCommand("Clear Selection"), mpSelection(pSelection) { @@ -21,9 +21,9 @@ public: mOldSelection << *It; } - void undo() { mpSelection->SetSelectedNodes(mOldSelection.DereferenceList()); } - void redo() { mpSelection->Clear(); } - bool AffectsCleanState() const { return false; } + void undo() override { mpSelection->SetSelectedNodes(mOldSelection.DereferenceList()); } + void redo() override { mpSelection->Clear(); } + bool AffectsCleanState() const override { return false; } }; #endif // CCLEARSELECTIONCOMMAND_H