From 8bc375f001364264979d42e9880caa0b2f1f2dc2 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 10 Jul 2020 15:46:05 -0400 Subject: [PATCH] CTemplateListModel: Make use of push_back over operator<< --- src/Editor/WorldEditor/CTemplateListView.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Editor/WorldEditor/CTemplateListView.h b/src/Editor/WorldEditor/CTemplateListView.h index cd6b1173..00e32293 100644 --- a/src/Editor/WorldEditor/CTemplateListView.h +++ b/src/Editor/WorldEditor/CTemplateListView.h @@ -67,7 +67,7 @@ public: if (mpGame) { for (uint32 iTemp = 0; iTemp < mpGame->NumScriptTemplates(); iTemp++) - mTemplates << mpGame->TemplateByIndex(iTemp); + mTemplates.push_back(mpGame->TemplateByIndex(iTemp)); std::sort(mTemplates.begin(), mTemplates.end(), [](CScriptTemplate *pLeft, CScriptTemplate *pRight) -> bool { return pLeft->Name() < pRight->Name();