From e11ad95d379a1e58f79fa9e48288b73a79df9ab8 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 10 Jul 2020 16:10:28 -0400 Subject: [PATCH] CPasteNodeCommand: Make use of push_back over operator<< --- src/Editor/Undo/CPasteNodesCommand.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Editor/Undo/CPasteNodesCommand.cpp b/src/Editor/Undo/CPasteNodesCommand.cpp index 275298b7..312f81da 100644 --- a/src/Editor/Undo/CPasteNodesCommand.cpp +++ b/src/Editor/Undo/CPasteNodesCommand.cpp @@ -75,13 +75,14 @@ void CPasteNodesCommand::redo() pNewNode->SetRotation(rkNode.Rotation); pNewNode->SetScale(rkNode.Scale); - PastedNodes << pNewNode; + PastedNodes.push_back(pNewNode); mpEditor->NotifyNodeSpawned(pNewNode); } - // If we didn't paste a valid node, add a null node so that the indices still match up with the indices from the mime data. else - PastedNodes << nullptr; + { + PastedNodes.push_back(nullptr); + } } // Fix links. This is how fixes are prioritized: @@ -118,7 +119,7 @@ void CPasteNodesCommand::redo() { CScriptObject *pReceiver = pLink->Receiver(); pReceiver->AddLink(ELinkType::Incoming, pLink); - mLinkedInstances << pReceiver; + mLinkedInstances.push_back(pReceiver); } } }