1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2025-12-11 15:32:07 +01:00

Codechange: Use template type for GUIList::Sort comparator

This commit is contained in:
Jonathan G Rennison
2020-06-15 18:53:13 +01:00
committed by Charles Pigott
parent 7b05f8e741
commit dbb58fa5de

View File

@@ -250,7 +250,8 @@ public:
* @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 */
if (!(this->flags & VL_RESORT)) return false;