CEditorApplication: Make use of push_back over operator<<

This commit is contained in:
Lioncash 2020-07-10 12:25:42 -04:00
parent c6a2669176
commit 26a8c6529f
1 changed files with 4 additions and 4 deletions

View File

@ -205,7 +205,7 @@ void CEditorApplication::NotifyAssetsModified()
bool CEditorApplication::CookPackage(CPackage *pPkg)
{
return CookPackageList(QList<CPackage*>() << pPkg);
return CookPackageList({pPkg});
}
bool CEditorApplication::CookAllDirtyPackages()
@ -218,10 +218,10 @@ bool CEditorApplication::CookAllDirtyPackages()
CPackage *pPackage = mpActiveProject->PackageByIndex(iPkg);
if (pPackage->NeedsRecook())
PackageList << pPackage;
PackageList.push_back(pPackage);
}
return CookPackageList(PackageList);
return CookPackageList(std::move(PackageList));
}
bool CEditorApplication::CookPackageList(QList<CPackage*> PackageList)
@ -299,7 +299,7 @@ bool CEditorApplication::RebuildResourceDatabase()
// ************ SLOTS ************
void CEditorApplication::AddEditor(IEditor *pEditor)
{
mEditorWindows << pEditor;
mEditorWindows.push_back(pEditor);
connect(pEditor, &IEditor::Closed, this, &CEditorApplication::OnEditorClose);
}