# HG changeset patch # User Jonathan G Rennison # Date 2020-06-15 17:53:13 # Node ID f30a4ebe294bfd266a8ac89d7be0e1c736f8c6eb # Parent a453396675d0772cbbe865d58c6b307e70fb8a82 Codechange: Use template type for GUIList::Sort comparator diff --git a/src/sortlist_type.h b/src/sortlist_type.h --- 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 + bool Sort(Comp compare) { /* Do not sort if the resort bit is not set */ if (!(this->flags & VL_RESORT)) return false;