CDeleteLinksCommand: Make use of override where applicable

This commit is contained in:
Lioncash 2020-06-28 02:58:16 -04:00
parent 87be8f6957
commit d4a9f73e00
1 changed files with 5 additions and 5 deletions

View File

@ -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<SDeletedLink> mLinks;
public:
CDeleteLinksCommand() {}
CDeleteLinksCommand() = default;
CDeleteLinksCommand(CWorldEditor *pEditor, CScriptObject *pObject, ELinkType Type, const QVector<uint32>& 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