From 85fdbe709a5545af5ceaeb981ce3f8da84105b68 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 10 Jul 2020 16:07:16 -0400 Subject: [PATCH] CResourceTableContextMenu: Make use of push_back over operator<< --- src/Editor/ResourceBrowser/CResourceTableContextMenu.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Editor/ResourceBrowser/CResourceTableContextMenu.cpp b/src/Editor/ResourceBrowser/CResourceTableContextMenu.cpp index e291d3a2..dd544c6d 100644 --- a/src/Editor/ResourceBrowser/CResourceTableContextMenu.cpp +++ b/src/Editor/ResourceBrowser/CResourceTableContextMenu.cpp @@ -172,7 +172,7 @@ void CResourceTableContextMenu::ShowReferencers() for (CResourceIterator Iter(mpClickedEntry->ResourceStore()); Iter; ++Iter) { if (Iter->Dependencies()->HasDependency(mpClickedEntry->ID())) - EntryList << *Iter; + EntryList.push_back(*Iter); } if (!mpModel->IsDisplayingUserEntryList()) @@ -197,7 +197,7 @@ void CResourceTableContextMenu::ShowDependencies() CResourceEntry *pEntry = mpClickedEntry->ResourceStore()->FindEntry(*Iter); if (pEntry) - EntryList << pEntry; + EntryList.push_back(pEntry); } if (!mpModel->IsDisplayingUserEntryList()) @@ -217,9 +217,9 @@ void CResourceTableContextMenu::Delete() for (const QModelIndex& kIndex : mSelectedIndexes) { if (mpModel->IsIndexDirectory(kIndex)) - Directories << mpModel->IndexDirectory(kIndex); + Directories.push_back(mpModel->IndexDirectory(kIndex)); else - Resources << mpModel->IndexEntry(kIndex); + Resources.push_back(mpModel->IndexEntry(kIndex)); } mpBrowser->Delete(Resources, Directories);