mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-08 13:29:42 +01:00
Codechange: Use template type for GUIList::Sort comparator
This commit is contained in:
parent
7b05f8e741
commit
dbb58fa5de
@ -250,7 +250,8 @@ public:
|
|||||||
* @return true if the list sequence has been altered
|
* @return true if the list sequence has been altered
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
bool Sort(SortFunction *compare)
|
template <typename Comp>
|
||||||
|
bool Sort(Comp compare)
|
||||||
{
|
{
|
||||||
/* Do not sort if the resort bit is not set */
|
/* Do not sort if the resort bit is not set */
|
||||||
if (!(this->flags & VL_RESORT)) return false;
|
if (!(this->flags & VL_RESORT)) return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user