From 3ad094f1e70677b0aa44284ba6b50391b6e9b9cb Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 3 Jul 2020 12:42:54 -0400 Subject: [PATCH] CMoveRenameResourceCommand: Make use of override --- src/Editor/Undo/CRenameResourceCommand.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Editor/Undo/CRenameResourceCommand.h b/src/Editor/Undo/CRenameResourceCommand.h index a2bd0c52..c3848087 100644 --- a/src/Editor/Undo/CRenameResourceCommand.h +++ b/src/Editor/Undo/CRenameResourceCommand.h @@ -22,9 +22,9 @@ public: , mOldNameAutoGenerated(pEntry->HasFlag(EResEntryFlag::AutoResName)) {} - void undo() { DoMove(mOldName, mOldNameAutoGenerated); } - void redo() { DoMove(mNewName, false); } - bool AffectsCleanState() const { return false; } + void undo() override { DoMove(mOldName, mOldNameAutoGenerated); } + void redo() override { DoMove(mNewName, false); } + bool AffectsCleanState() const override { return false; } protected: void DoMove(const TString& rkName, bool IsAutoName)