CDeleteLinksCommand: Make use of override where applicable
This commit is contained in:
parent
87be8f6957
commit
d4a9f73e00
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue