From c8db5e2581d1e30f45de3ea92f6a0269b3cef2be Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 3 Jul 2020 22:13:33 -0400 Subject: [PATCH] CCloneSelectionCommand: Make use of STL named functions --- src/Editor/Undo/CCloneSelectionCommand.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Editor/Undo/CCloneSelectionCommand.cpp b/src/Editor/Undo/CCloneSelectionCommand.cpp index 825f5017..11f2dd30 100644 --- a/src/Editor/Undo/CCloneSelectionCommand.cpp +++ b/src/Editor/Undo/CCloneSelectionCommand.cpp @@ -11,7 +11,7 @@ CCloneSelectionCommand::CCloneSelectionCommand(INodeEditor *pEditor) { if (It->NodeType() == ENodeType::Script) { - mNodesToClone << *It; + mNodesToClone.push_back(*It); // Fetch linked objects CScriptNode *pScript = static_cast(*It); @@ -22,7 +22,7 @@ CCloneSelectionCommand::CCloneSelectionCommand(INodeEditor *pEditor) CScriptNode *pNode = mpEditor->Scene()->NodeForInstance(pInst->Link(ELinkType::Outgoing, iLink)->Receiver()); if (!pNode->IsSelected()) - mLinkedInstances << pNode->Instance(); + mLinkedInstances.push_back(pNode->Instance()); } } } @@ -72,10 +72,10 @@ void CCloneSelectionCommand::redo() pCloneNode->SetRotation(pScript->LocalRotation()); pCloneNode->SetScale(pScript->LocalScale()); - ToCloneInstanceIDs << pInstance->InstanceID(); - ClonedInstanceIDs << pCloneInst->InstanceID(); - ClonedNodes << pCloneNode; - mClonedNodes << pCloneNode; + ToCloneInstanceIDs.push_back(pInstance->InstanceID()); + ClonedInstanceIDs.push_back(pCloneInst->InstanceID()); + ClonedNodes.push_back(pCloneNode); + mClonedNodes.push_back(pCloneNode); mpEditor->NotifyNodeSpawned(pCloneNode); }