From 733faf2bb182d7e4f2be7bc051155ec5bac5f2a1 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 10 Jul 2020 16:21:03 -0400 Subject: [PATCH] CWorldTreeModel: Make use of push_back over operator<< --- src/Editor/WorldEditor/CWorldTreeModel.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Editor/WorldEditor/CWorldTreeModel.cpp b/src/Editor/WorldEditor/CWorldTreeModel.cpp index 6b93af0b..2ac5019f 100644 --- a/src/Editor/WorldEditor/CWorldTreeModel.cpp +++ b/src/Editor/WorldEditor/CWorldTreeModel.cpp @@ -242,10 +242,10 @@ void CWorldTreeModel::OnProjectChanged(CGameProject *pProj) CAssetID AreaID = pWorld->AreaResourceID(iArea); CResourceEntry *pAreaEntry = pWorld->Entry()->ResourceStore()->FindEntry(AreaID); ASSERT(pAreaEntry); - Info.Areas << pAreaEntry; + Info.Areas.push_back(pAreaEntry); } - mWorldList << Info; + mWorldList.push_back(Info); } } } @@ -301,12 +301,12 @@ void CWorldTreeModel::OnProjectChanged(CGameProject *pProj) if (!pInfo || pInfo->WorldName != WorldNameQ) { - mWorldList << SWorldInfo(); + mWorldList.push_back(SWorldInfo()); pInfo = &mWorldList.back(); pInfo->WorldName = WorldNameQ; } - pInfo->Areas << pEntry; + pInfo->Areas.push_back(pEntry); UsedWorlds.insert(pEntry->ID()); } } @@ -321,7 +321,7 @@ void CWorldTreeModel::OnProjectChanged(CGameProject *pProj) for (TResourceIterator It; It; ++It) { if (UsedWorlds.find(It->ID()) == UsedWorlds.end()) - pInfo->Areas << *It; + pInfo->Areas.push_back(*It); } // Sort FrontEnd world