[Aptitude-devel] r3106 - in branches/aptitude-0.3/aptitude: . src/vscreen

Daniel Burrows dburrows@costa.debian.org
Wed, 27 Apr 2005 01:00:51 +0000


Author: dburrows
Date: Wed Apr 27 01:00:47 2005
New Revision: 3106

Modified:
   branches/aptitude-0.3/aptitude/ChangeLog
   branches/aptitude-0.3/aptitude/src/vscreen/fragment_contents.h
Log:
Make fragment_contents::size() a const method.

Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog	(original)
+++ branches/aptitude-0.3/aptitude/ChangeLog	Wed Apr 27 01:00:47 2005
@@ -1,5 +1,9 @@
 2005-04-26  Daniel Burrows  <dburrows@debian.org>
 
+	* src/vscreen/fragment_contents.h:
+
+	  Make size() const.
+
 	* src/ui.cc:
 
 	  Oops, actually show a preview after auto-fixing.

Modified: branches/aptitude-0.3/aptitude/src/vscreen/fragment_contents.h
==============================================================================
--- branches/aptitude-0.3/aptitude/src/vscreen/fragment_contents.h	(original)
+++ branches/aptitude-0.3/aptitude/src/vscreen/fragment_contents.h	Wed Apr 27 01:00:47 2005
@@ -149,7 +149,7 @@
     fragment_line &operator[](int i) { return v[i]; }
     const fragment_line &operator[](int i) const { return v[i]; }
 
-    size_t size() {return v.size();}
+    size_t size() const {return v.size();}
   };
 public:
   typedef fragment_lines::iterator iterator;