Codechange: replace strnatcmp with C++ string capable version

This commit is contained in:
Rubidium
2023-04-27 15:39:10 +02:00
committed by rubidium42
parent df19673fbd
commit c829930440
22 changed files with 47 additions and 54 deletions

View File

@@ -670,7 +670,7 @@ bool GRFFileScanner::AddFile(const std::string &filename, size_t basepath_length
*/
static bool GRFSorter(GRFConfig * const &c1, GRFConfig * const &c2)
{
return strnatcmp(c1->GetName(), c2->GetName()) < 0;
return StrNaturalCompare(c1->GetName(), c2->GetName()) < 0;
}
/**