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

View File

@ -7,7 +7,7 @@
class CDeleteLinksCommand : public IUndoCommand class CDeleteLinksCommand : public IUndoCommand
{ {
CWorldEditor *mpEditor; CWorldEditor *mpEditor = nullptr;
CInstancePtrList mAffectedInstances; CInstancePtrList mAffectedInstances;
struct SDeletedLink struct SDeletedLink
@ -22,11 +22,11 @@ class CDeleteLinksCommand : public IUndoCommand
QVector<SDeletedLink> mLinks; QVector<SDeletedLink> mLinks;
public: public:
CDeleteLinksCommand() {} CDeleteLinksCommand() = default;
CDeleteLinksCommand(CWorldEditor *pEditor, CScriptObject *pObject, ELinkType Type, const QVector<uint32>& rkIndices); CDeleteLinksCommand(CWorldEditor *pEditor, CScriptObject *pObject, ELinkType Type, const QVector<uint32>& rkIndices);
void undo(); void undo() override;
void redo(); void redo() override;
bool AffectsCleanState() const { return true; } bool AffectsCleanState() const override { return true; }
}; };
#endif // CDELETELINKSCOMMAND_H #endif // CDELETELINKSCOMMAND_H