mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-24 20:12:42 +00:00
Codechange: unify documentation and parameter names of sorters
This commit is contained in:
@@ -535,14 +535,10 @@ bool GRFFileScanner::AddFile(const std::string &filename, size_t basepath_length
|
||||
}
|
||||
|
||||
/**
|
||||
* Simple sorter for GRFS
|
||||
* @param c1 the first GRFConfig *
|
||||
* @param c2 the second GRFConfig *
|
||||
* @return true if the name of first NewGRF is before the name of the second.
|
||||
*/
|
||||
static bool GRFSorter(std::unique_ptr<GRFConfig> const &c1, std::unique_ptr<GRFConfig> const &c2)
|
||||
* Simple sorter for GRFS. @copydoc GUIList::Sorter */
|
||||
static bool GRFSorter(std::unique_ptr<GRFConfig> const &a, std::unique_ptr<GRFConfig> const &b)
|
||||
{
|
||||
return StrNaturalCompare(c1->GetName(), c2->GetName()) < 0;
|
||||
return StrNaturalCompare(a->GetName(), b->GetName()) < 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user