File: gcc11.patch

package info (click to toggle)
marsshooter 0.7.6-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 80,812 kB
  • sloc: cpp: 20,216; xml: 29; makefile: 8
file content (29 lines) | stat: -rw-r--r-- 901 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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();
             }
         };