From b355dbe07ee59b27e45598d9550a4da7bf9278c9 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 10 Jul 2020 15:46:29 -0400 Subject: [PATCH] CTemplateListModel: Mark sort parameters as const --- 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 00e32293..e1a916c5 100644 --- a/src/Editor/WorldEditor/CTemplateListView.h +++ b/src/Editor/WorldEditor/CTemplateListView.h @@ -69,7 +69,7 @@ public: for (uint32 iTemp = 0; iTemp < mpGame->NumScriptTemplates(); iTemp++) mTemplates.push_back(mpGame->TemplateByIndex(iTemp)); - std::sort(mTemplates.begin(), mTemplates.end(), [](CScriptTemplate *pLeft, CScriptTemplate *pRight) -> bool { + std::sort(mTemplates.begin(), mTemplates.end(), [](const CScriptTemplate *pLeft, const CScriptTemplate *pRight) { return pLeft->Name() < pRight->Name(); }); }