From d4a9f73e004b4843018af52b5c9c31ec5d54e6d8 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 28 Jun 2020 02:58:16 -0400 Subject: [PATCH] CDeleteLinksCommand: Make use of override where applicable --- src/Editor/Undo/CDeleteLinksCommand.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Editor/Undo/CDeleteLinksCommand.h b/src/Editor/Undo/CDeleteLinksCommand.h index 93502bb9..c319a75c 100644 --- a/src/Editor/Undo/CDeleteLinksCommand.h +++ b/src/Editor/Undo/CDeleteLinksCommand.h @@ -7,7 +7,7 @@ class CDeleteLinksCommand : public IUndoCommand { - CWorldEditor *mpEditor; + CWorldEditor *mpEditor = nullptr; CInstancePtrList mAffectedInstances; struct SDeletedLink @@ -22,11 +22,11 @@ class CDeleteLinksCommand : public IUndoCommand QVector mLinks; public: - CDeleteLinksCommand() {} + CDeleteLinksCommand() = default; CDeleteLinksCommand(CWorldEditor *pEditor, CScriptObject *pObject, ELinkType Type, const QVector& rkIndices); - void undo(); - void redo(); - bool AffectsCleanState() const { return true; } + void undo() override; + void redo() override; + bool AffectsCleanState() const override { return true; } }; #endif // CDELETELINKSCOMMAND_H