From 084b073e57817199fc679179d8b0e4520b10e606 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Mon, 15 Jun 2020 18:53:13 +0100 Subject: Codechange: Use template type for GUIList::Sort comparator --- src/sortlist_type.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/sortlist_type.h') 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 + bool Sort(Comp compare) { /* Do not sort if the resort bit is not set */ if (!(this->flags & VL_RESORT)) return false; -- cgit v1.2.3-54-g00ecf