[Aptitude-svn-commit] r3550 - in branches/aptitude-0.3/aptitude: . src

Daniel Burrows dburrows@costa.debian.org
Sat, 02 Jul 2005 16:41:11 +0000


Author: dburrows
Date: Sat Jul  2 16:41:09 2005
New Revision: 3550

Modified:
   branches/aptitude-0.3/aptitude/ChangeLog
   branches/aptitude-0.3/aptitude/src/pkg_sortpolicy.h
Log:
Make pkg_sortpolicy_wrapper::operator() non-const.

Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog	(original)
+++ branches/aptitude-0.3/aptitude/ChangeLog	Sat Jul  2 16:41:09 2005
@@ -1,5 +1,10 @@
 2005-07-02  Daniel Burrows  <dburrows@debian.org>
 
+	* src/pkg_sortpolicy.h:
+
+	  Make operator() non-const; the new sort policy protocol
+	  requires this.
+
 	* src/pkg_sortpolicy.cc:
 
 	  Fix the sorting policy to work with the new internal interfaces.

Modified: branches/aptitude-0.3/aptitude/src/pkg_sortpolicy.h
==============================================================================
--- branches/aptitude-0.3/aptitude/src/pkg_sortpolicy.h	(original)
+++ branches/aptitude-0.3/aptitude/src/pkg_sortpolicy.h	Sat Jul  2 16:41:09 2005
@@ -55,7 +55,7 @@
   pkg_sortpolicy_wrapper(pkg_sortpolicy *_chain):chain(_chain) {}
 
   int compare(vs_treeitem *item1, vs_treeitem *item2) const;
-  bool operator()(vs_treeitem *item1, vs_treeitem *item2) const
+  bool operator()(vs_treeitem *item1, vs_treeitem *item2)
   {
     return (compare(item1, item2)<0);
   }