From 1a4666e5106bcfa238b1aa10bd8c8f42015ce96f Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 10 Jul 2020 16:14:03 -0400 Subject: [PATCH] CWorldEditor: Make use of push_back over operator<< --- src/Editor/WorldEditor/CWorldEditor.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Editor/WorldEditor/CWorldEditor.cpp b/src/Editor/WorldEditor/CWorldEditor.cpp index 8cd5a3d2..470fb9c3 100644 --- a/src/Editor/WorldEditor/CWorldEditor.cpp +++ b/src/Editor/WorldEditor/CWorldEditor.cpp @@ -630,7 +630,7 @@ void CWorldEditor::SetSelectionActive(bool Active) { CScriptNode* pScript = static_cast(*It); CScriptObject* pInst = pScript->Instance(); - Objects << pInst; + Objects.push_back(pInst); } } @@ -648,7 +648,7 @@ void CWorldEditor::SetSelectionActive(bool Active) { if (Objects[ObjIdx]->Template() == pTemplate) { - CommandObjects << Objects[ObjIdx]; + CommandObjects.push_back(Objects[ObjIdx]); Objects.removeAt(ObjIdx); ObjIdx--; } @@ -707,7 +707,7 @@ void CWorldEditor::SetSelectionLayer(CScriptLayer *pLayer) for (CSelectionIterator It(mpSelection); It; ++It) { if (It->NodeType() == ENodeType::Script) - ScriptNodes << static_cast(*It); + ScriptNodes.push_back(static_cast(*It)); } if (!ScriptNodes.isEmpty()) @@ -1125,7 +1125,7 @@ void CWorldEditor::OnUnlinkClicked() { QVector LinkIndices; for (uint32 iLink = 0; iLink < pInst->NumLinks(ELinkType::Incoming); iLink++) - LinkIndices << iLink; + LinkIndices.push_back(iLink); CDeleteLinksCommand *pCmd = new CDeleteLinksCommand(this, pInst, ELinkType::Incoming, LinkIndices); UndoStack().push(pCmd); @@ -1135,7 +1135,7 @@ void CWorldEditor::OnUnlinkClicked() { QVector LinkIndices; for (uint32 iLink = 0; iLink < pInst->NumLinks(ELinkType::Outgoing); iLink++) - LinkIndices << iLink; + LinkIndices.push_back(iLink); CDeleteLinksCommand *pCmd = new CDeleteLinksCommand(this, pInst, ELinkType::Outgoing, LinkIndices); UndoStack().push(pCmd);