From 90e71289a60cb8e9ad71dbd7cf08b4ee934517f0 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 10 Jul 2020 12:00:08 -0400 Subject: [PATCH] CResourceBrowser: Make use of push_back over operator<< --- src/Editor/ResourceBrowser/CResourceBrowser.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Editor/ResourceBrowser/CResourceBrowser.cpp b/src/Editor/ResourceBrowser/CResourceBrowser.cpp index b0e208e1..09dbd1b9 100644 --- a/src/Editor/ResourceBrowser/CResourceBrowser.cpp +++ b/src/Editor/ResourceBrowser/CResourceBrowser.cpp @@ -256,7 +256,7 @@ void CResourceBrowser::CreateFilterCheckboxes() QCheckBox *pCheck = new QCheckBox(this); pCheck->setFont(mFilterBoxFont); pCheck->setText(TO_QSTRING(type->TypeName())); - mTypeList << SResourceType{type, pCheck}; + mTypeList.push_back(SResourceType{type, pCheck}); } std::sort(mTypeList.begin(), mTypeList.end(), [](const SResourceType& rkLeft, const SResourceType& rkRight) { @@ -387,9 +387,9 @@ bool CResourceBrowser::MoveResources(const QList& rkResources, if (pConflict != pEntry) { if (pConflict != nullptr) - ConflictingResources << pEntry; + ConflictingResources.push_back(pEntry); else - ValidResources << pEntry; + ValidResources.push_back(pEntry); } } @@ -403,9 +403,9 @@ bool CResourceBrowser::MoveResources(const QList& rkResources, if (pConflict != pDir) { if (pConflict != nullptr) - ConflictingDirs << pDir; + ConflictingDirs.push_back(pDir); else - ValidDirs << pDir; + ValidDirs.push_back(pDir); } }