CCreateInstanceCommand: Make use of override where applicable
This commit is contained in:
parent
68a8f236fa
commit
87be8f6957
|
@ -12,7 +12,7 @@ CCreateInstanceCommand::CCreateInstanceCommand(CWorldEditor *pEditor, CScriptTem
|
||||||
, mpNewInstance(nullptr)
|
, mpNewInstance(nullptr)
|
||||||
, mpNewNode(nullptr)
|
, mpNewNode(nullptr)
|
||||||
{
|
{
|
||||||
ASSERT(mLayerIndex != -1);
|
ASSERT(mLayerIndex != UINT32_MAX);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CCreateInstanceCommand::undo()
|
void CCreateInstanceCommand::undo()
|
||||||
|
|
|
@ -24,9 +24,9 @@ class CCreateInstanceCommand : public IUndoCommand
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CCreateInstanceCommand(CWorldEditor *pEditor, CScriptTemplate *pTemplate, CScriptLayer *pLayer, const CVector3f& rkPosition);
|
CCreateInstanceCommand(CWorldEditor *pEditor, CScriptTemplate *pTemplate, CScriptLayer *pLayer, const CVector3f& rkPosition);
|
||||||
void undo();
|
void undo() override;
|
||||||
void redo();
|
void redo() override;
|
||||||
bool AffectsCleanState() const { return true; }
|
bool AffectsCleanState() const override { return true; }
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // CCREATEINSTANCECOMMAND_H
|
#endif // CCREATEINSTANCECOMMAND_H
|
||||||
|
|
Loading…
Reference in New Issue