mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-07-02 03:13:38 +00:00
CDeleteLinksCommand: Make use of override where applicable
This commit is contained in:
parent
87be8f6957
commit
d4a9f73e00
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user