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…
Reference in New Issue