From 24a69164f7dee96bd44cc8fdf2f6fe6215148dbc Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 3 Jul 2020 12:48:01 -0400 Subject: [PATCH] ICreateDeleteResourceCommand: Make use of override --- src/Editor/Undo/ICreateDeleteResourceCommand.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Editor/Undo/ICreateDeleteResourceCommand.h b/src/Editor/Undo/ICreateDeleteResourceCommand.h index fff6c63e..2e6d7cab 100644 --- a/src/Editor/Undo/ICreateDeleteResourceCommand.h +++ b/src/Editor/Undo/ICreateDeleteResourceCommand.h @@ -42,29 +42,29 @@ public: gpEdApp->ResourceBrowser()->ResourceDeleted(); } - bool AffectsCleanState() const { return false; } + bool AffectsCleanState() const override { return false; } }; class CCreateResourceCommand : public ICreateDeleteResourceCommand { public: - CCreateResourceCommand(CResourceEntry* pEntry) + explicit CCreateResourceCommand(CResourceEntry* pEntry) : ICreateDeleteResourceCommand("Create Resource", pEntry) {} - void undo() { DoDelete(); } - void redo() { DoCreate(); } + void undo() override { DoDelete(); } + void redo() override { DoCreate(); } }; class CDeleteResourceCommand : public ICreateDeleteResourceCommand { public: - CDeleteResourceCommand(CResourceEntry* pEntry) + explicit CDeleteResourceCommand(CResourceEntry* pEntry) : ICreateDeleteResourceCommand("Delete Resource", pEntry) {} - void undo() { DoCreate(); } - void redo() { DoDelete(); } + void undo() override { DoCreate(); } + void redo() override { DoDelete(); } }; #endif // ICREATEDELETERESOURCECOMMAND_H