Use aznew where appropriate for EMotionFX Command subclasses (#4912)

Signed-off-by: Chris Burel <burelc@amazon.com>
This commit is contained in:
Chris Burel
2021-10-27 00:53:24 -07:00
committed by GitHub
parent 56a1d4ff44
commit cd65e686ff
3 changed files with 4 additions and 4 deletions
@@ -60,7 +60,7 @@ namespace CommandSystem
const char* GetDescription() const override;
MCore::Command* Create() override
{
return new CommandAnimGraphAdjustNodeGroup(this);
return aznew CommandAnimGraphAdjustNodeGroup(this);
}
static AZStd::vector<AZStd::string> GenerateNodeNameVector(EMotionFX::AnimGraph* animGraph, const AZStd::vector<EMotionFX::AnimGraphNodeId>& nodeIDs);
@@ -104,7 +104,7 @@ namespace CommandSystem
RegisterCommand(new CommandMotionSetAdjustMotion());
// register node group commands
RegisterCommand(new CommandAdjustNodeGroup());
RegisterCommand(aznew CommandAdjustNodeGroup());
RegisterCommand(new CommandAddNodeGroup());
RegisterCommand(new CommandRemoveNodeGroup());
@@ -134,7 +134,7 @@ namespace CommandSystem
RegisterCommand(aznew CommandAdjustTransitionCondition());
RegisterCommand(new CommandAnimGraphAddNodeGroup());
RegisterCommand(new CommandAnimGraphRemoveNodeGroup());
RegisterCommand(new CommandAnimGraphAdjustNodeGroup());
RegisterCommand(aznew CommandAnimGraphAdjustNodeGroup());
RegisterCommand(new CommandAnimGraphAddGroupParameter());
RegisterCommand(new CommandAnimGraphRemoveGroupParameter());
RegisterCommand(new CommandAnimGraphAdjustGroupParameter());
@@ -63,7 +63,7 @@ namespace CommandSystem
const char* GetDescription() const override;
MCore::Command* Create() override
{
return new CommandAdjustNodeGroup(this);
return aznew CommandAdjustNodeGroup(this);
}
private: