CResourceBrowser: Make use of push_back over operator<<

This commit is contained in:
Lioncash 2020-07-10 12:00:08 -04:00
parent 62fda783f9
commit 90e71289a6
1 changed files with 5 additions and 5 deletions

View File

@ -256,7 +256,7 @@ void CResourceBrowser::CreateFilterCheckboxes()
QCheckBox *pCheck = new QCheckBox(this); QCheckBox *pCheck = new QCheckBox(this);
pCheck->setFont(mFilterBoxFont); pCheck->setFont(mFilterBoxFont);
pCheck->setText(TO_QSTRING(type->TypeName())); 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) { std::sort(mTypeList.begin(), mTypeList.end(), [](const SResourceType& rkLeft, const SResourceType& rkRight) {
@ -387,9 +387,9 @@ bool CResourceBrowser::MoveResources(const QList<CResourceEntry*>& rkResources,
if (pConflict != pEntry) if (pConflict != pEntry)
{ {
if (pConflict != nullptr) if (pConflict != nullptr)
ConflictingResources << pEntry; ConflictingResources.push_back(pEntry);
else else
ValidResources << pEntry; ValidResources.push_back(pEntry);
} }
} }
@ -403,9 +403,9 @@ bool CResourceBrowser::MoveResources(const QList<CResourceEntry*>& rkResources,
if (pConflict != pDir) if (pConflict != pDir)
{ {
if (pConflict != nullptr) if (pConflict != nullptr)
ConflictingDirs << pDir; ConflictingDirs.push_back(pDir);
else else
ValidDirs << pDir; ValidDirs.push_back(pDir);
} }
} }