From 52f87edca5aaf564f55547b7de413e7b92029155 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Wed, 17 Nov 2021 21:10:05 -0500 Subject: [PATCH] Time: operator() on the comparator structure must be const. The STL seems to require it, but before GCC 11 that may not have been properly enforced. --- src/preferences/time/ZoneView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/preferences/time/ZoneView.cpp b/src/preferences/time/ZoneView.cpp index bd6e81227a..8b33c226e9 100644 --- a/src/preferences/time/ZoneView.cpp +++ b/src/preferences/time/ZoneView.cpp @@ -66,7 +66,7 @@ using BPrivate::ObjectDeleter; struct TimeZoneItemLess { - bool operator()(const BString& first, const BString& second) + bool operator()(const BString& first, const BString& second) const { // sort anything starting with '<' behind anything else if (first.ByteAt(0) == '<') {