mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-06-24 07:23:36 +00:00
CTemplateListModel: Mark sort parameters as const
This commit is contained in:
parent
8bc375f001
commit
b355dbe07e
@ -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();
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user