File gcc11.patch of Package marsshooter

From: Markus Koschany <apo@debian.org>
Date: Wed, 13 Oct 2021 23:01:57 +0200
Subject: gcc11

Forwarded: no
---
 include/Hud/TabStats.hpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/Hud/TabStats.hpp b/include/Hud/TabStats.hpp
index 06b88b0..6066b1a 100644
--- a/include/Hud/TabStats.hpp
+++ b/include/Hud/TabStats.hpp
@@ -40,13 +40,13 @@ class TabStats: public HudElement {
 
     private:
         struct playerPtrCmp{
-            bool operator()(Player* lhs, Player* rhs){
+            bool operator()(const Player* lhs, const Player* rhs) const {
                 return lhs->points_ > rhs->points_;
             }
         };
 
         struct teamPtrCmp{
-            bool operator()(Team* lhs, Team* rhs){
+            bool operator()(const Team* lhs, const Team* rhs) const {
                 return lhs->points() > rhs->points();
             }
         };
openSUSE Build Service is sponsored by