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)
|
||||
, mpNewNode(nullptr)
|
||||
{
|
||||
ASSERT(mLayerIndex != -1);
|
||||
ASSERT(mLayerIndex != UINT32_MAX);
|
||||
}
|
||||
|
||||
void CCreateInstanceCommand::undo()
|
||||
|
|
|
@ -24,9 +24,9 @@ class CCreateInstanceCommand : public IUndoCommand
|
|||
|
||||
public:
|
||||
CCreateInstanceCommand(CWorldEditor *pEditor, CScriptTemplate *pTemplate, CScriptLayer *pLayer, const CVector3f& rkPosition);
|
||||
void undo();
|
||||
void redo();
|
||||
bool AffectsCleanState() const { return true; }
|
||||
void undo() override;
|
||||
void redo() override;
|
||||
bool AffectsCleanState() const override { return true; }
|
||||
};
|
||||
|
||||
#endif // CCREATEINSTANCECOMMAND_H
|
||||
|
|
Loading…
Reference in New Issue