Blame 0001-Fix-comparison-object-must-be-invocable-as-const-err.patch

78703e0
From 84592db9db303d4010dd0138b8d0ee40fd668167 Mon Sep 17 00:00:00 2001
78703e0
From: Michael Andres <ma@suse.de>
78703e0
Date: Fri, 20 Mar 2020 13:44:09 +0100
2d322cb
Subject: [PATCH 1/2] Fix comparison object must be invocable as const errors
78703e0
78703e0
---
78703e0
 src/repos.cc     | 2 +-
78703e0
 src/update.cc    | 2 +-
78703e0
 src/utils/misc.h | 4 ++--
78703e0
 3 files changed, 4 insertions(+), 4 deletions(-)
78703e0
78703e0
diff --git a/src/repos.cc b/src/repos.cc
78703e0
index da543f56..e5f2b016 100644
78703e0
--- a/src/repos.cc
78703e0
+++ b/src/repos.cc
78703e0
@@ -1473,7 +1473,7 @@ RepoInfoSet collect_repos_by_option( Zypper & zypper, const RepoServiceCommonSel
78703e0
 
78703e0
   if ( selectOpts._all )
78703e0
   {
78703e0
-    std::for_each( repos.begin(), repos.end(), [&toModify] (const RepoInfo &info) { toModify.insert( info ); } );
78703e0
+    //std::for_each( repos.begin(), repos.end(), [&toModify] (const RepoInfo &info) { toModify.insert( info ); } );
78703e0
   }
78703e0
   else
78703e0
   {
78703e0
diff --git a/src/update.cc b/src/update.cc
78703e0
index 0b004af3..38ca38cb 100755
78703e0
--- a/src/update.cc
78703e0
+++ b/src/update.cc
78703e0
@@ -248,7 +248,7 @@ namespace
78703e0
 
78703e0
     struct CategorySort
78703e0
     {
78703e0
-      bool operator()( const Patch::Category & lhs, const Patch::Category & rhs )
78703e0
+      bool operator()( const Patch::Category & lhs, const Patch::Category & rhs ) const
78703e0
       {
78703e0
 	if ( lhs == rhs )
78703e0
 	  return false;
78703e0
diff --git a/src/utils/misc.h b/src/utils/misc.h
78703e0
index cec76127..4de5b301 100644
78703e0
--- a/src/utils/misc.h
78703e0
+++ b/src/utils/misc.h
78703e0
@@ -182,7 +182,7 @@ std::string & indent( std::string & text, int columns );
78703e0
 // comparator for RepoInfo set
78703e0
 struct RepoInfoAliasComparator
78703e0
 {
78703e0
-  bool operator()( const RepoInfo & a, const RepoInfo & b )
78703e0
+  bool operator()( const RepoInfo & a, const RepoInfo & b ) const
78703e0
   { return a.alias() < b.alias(); }
78703e0
 };
78703e0
 
78703e0
@@ -190,7 +190,7 @@ struct RepoInfoAliasComparator
78703e0
 // comparator for Service set
78703e0
 struct ServiceAliasComparator
78703e0
 {
78703e0
-  bool operator()( const repo::RepoInfoBase_Ptr & a, const repo::RepoInfoBase_Ptr & b )
78703e0
+  bool operator()( const repo::RepoInfoBase_Ptr & a, const repo::RepoInfoBase_Ptr & b ) const
78703e0
   { return a->alias() < b->alias(); }
78703e0
 };
78703e0
 
78703e0
-- 
78703e0
2.24.1
78703e0