diff options
author | Jonathan G Rennison <j.g.rennison@gmail.com> | 2020-06-15 18:53:13 +0100 |
---|---|---|
committer | Niels Martin Hansen <nielsm@indvikleren.dk> | 2020-06-18 12:38:43 +0200 |
commit | 084b073e57817199fc679179d8b0e4520b10e606 (patch) | |
tree | c1db0594b8a694fdcfa1f99d3266068988c85844 | |
parent | d8182b7e1533027d43da6508652ecfc1b056548f (diff) | |
download | openttd-084b073e57817199fc679179d8b0e4520b10e606.tar.xz |
Codechange: Use template type for GUIList::Sort comparator
-rw-r--r-- | src/sortlist_type.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sortlist_type.h b/src/sortlist_type.h index a8730d96d..e5bfe06a9 100644 --- a/src/sortlist_type.h +++ b/src/sortlist_type.h @@ -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; |