(svn r11586) -Fix: make another widget 'accessor' function const when it should be const.
authorglx
Fri, 07 Dec 2007 17:42:15 +0000
changeset 8522 a1c44311e09e
parent 8521 ca9e5d1537c9
child 8523 b20d30c6ae9f
(svn r11586) -Fix: make another widget 'accessor' function const when it should be const.
src/window.cpp
src/window.h
--- a/src/window.cpp	Fri Dec 07 12:22:34 2007 +0000
+++ b/src/window.cpp	Fri Dec 07 17:42:15 2007 +0000
@@ -134,7 +134,7 @@
 	}
 }
 
-void Window::InvalidateWidget(byte widget_index)
+void Window::InvalidateWidget(byte widget_index) const
 {
 	const Widget *wi = &this->widget[widget_index];
 
--- a/src/window.h	Fri Dec 07 12:22:34 2007 +0000
+++ b/src/window.h	Fri Dec 07 17:42:15 2007 +0000
@@ -297,7 +297,7 @@
 	void CDECL SetWidgetsDisabledState(bool disab_stat, int widgets, ...);
 	void CDECL SetWidgetsHiddenState(bool hidden_stat, int widgets, ...);
 	void CDECL SetWidgetsLoweredState(bool lowered_stat, int widgets, ...);
-	void InvalidateWidget(byte widget_index);
+	void InvalidateWidget(byte widget_index) const;
 };
 
 struct querystr_d {