mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-07-03 03:36:10 +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++)
|
for (uint32 iTemp = 0; iTemp < mpGame->NumScriptTemplates(); iTemp++)
|
||||||
mTemplates.push_back(mpGame->TemplateByIndex(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();
|
return pLeft->Name() < pRight->Name();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user