Description: declare operator() methods as const
 This is part of the fixes necessary with the introduction of Gcc 11.
Author: Étienne Mollier <emollier@debian.org>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=984080
Forwarded: no
Last-Update: 2021-10-29
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- lamarc.orig/src/tools/rangex.h
+++ lamarc/src/tools/rangex.h
@@ -33,7 +33,7 @@
 
 struct rangecmp
 {
-    bool operator()(const std::pair<long int, long int> & p1, const std::pair<long int, long int> & p2)
+    bool operator()(const std::pair<long int, long int> & p1, const std::pair<long int, long int> & p2) const
     {
         if (p1.first == p2.first)
         {
@@ -47,7 +47,7 @@
 
 struct linkrangecmp
 {
-    bool operator()(const std::pair<unsigned long int, unsigned long int> & p1, const std::pair<unsigned long int, unsigned long int> & p2)
+    bool operator()(const std::pair<unsigned long int, unsigned long int> & p1, const std::pair<unsigned long int, unsigned long int> & p2) const
     {
         if (p1.first == p2.first)
         {
--- lamarc.orig/src/convModel/gc_file.h
+++ lamarc/src/convModel/gc_file.h
@@ -78,7 +78,7 @@
 
 struct GCFileCompare
 {
-    bool operator()(const GCFile*,const GCFile*);
+    bool operator()(const GCFile*,const GCFile*) const;
 };
 
 typedef std::set<GCFile*,GCFileCompare>         dataFileSet;
--- lamarc.orig/src/convModel/gc_file.cpp
+++ lamarc/src/convModel/gc_file.cpp
@@ -168,7 +168,7 @@
 }
 
 bool
-GCFileCompare::operator()(const GCFile* p1, const GCFile* p2)
+GCFileCompare::operator()(const GCFile* p1, const GCFile* p2) const
 {
     const wxString name1 = p1->GetName();
     const wxString name2 = p2->GetName();
