[Aptitude-svn-commit] r3298 - in branches/aptitude-0.3/aptitude: . src/vscreen/config
Daniel Burrows
dburrows@costa.debian.org
Sat, 04 Jun 2005 17:14:09 +0000
Author: dburrows
Date: Sat Jun 4 17:14:07 2005
New Revision: 3298
Modified:
branches/aptitude-0.3/aptitude/ChangeLog
branches/aptitude-0.3/aptitude/src/vscreen/config/style.h
Log:
Fix missing consts.
Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog (original)
+++ branches/aptitude-0.3/aptitude/ChangeLog Sat Jun 4 17:14:07 2005
@@ -1,5 +1,9 @@
2005-06-04 Daniel Burrows <dburrows@debian.org>
+ * src/vscreen/config/style.h:
+
+ Make several operators const that should be and weren't.
+
* src/vscreen/vscreen_widget.cc, src/vscreen/vscreen_widget.h:
Remove the stack of styles, it's the Wrong Way to do things. (if
Modified: branches/aptitude-0.3/aptitude/src/vscreen/config/style.h
==============================================================================
--- branches/aptitude-0.3/aptitude/src/vscreen/config/style.h (original)
+++ branches/aptitude-0.3/aptitude/src/vscreen/config/style.h Sat Jun 4 17:14:07 2005
@@ -114,7 +114,7 @@
/** \return a new style formed by composing this style with other.
* Note that this is a noncommutative operator!
*/
- style operator+(const style &other)
+ style operator+(const style &other) const
{
style rval;
rval.apply_style(other);
@@ -128,14 +128,14 @@
return *this;
}
- bool operator==(const style &other)
+ bool operator==(const style &other) const
{
return fg == other.fg && bg == other.bg &&
set_attrs == other.set_attrs && clear_attrs == other.clear_attrs &&
flip_attrs == other.flip_attrs;
}
- bool operator!=(const style &other)
+ bool operator!=(const style &other) const
{
return fg != other.fg || bg != other.bg ||
set_attrs != other.set_attrs || clear_attrs != other.clear_attrs ||