changeset 8026:791a08167682 draft

(svn r11586) -Fix: make another widget 'accessor' function const when it should be const.
author glx <glx@openttd.org>
date Fri, 07 Dec 2007 17:42:15 +0000
parents 7a501cf42789
children be5384b24dc2
files src/window.cpp src/window.h
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -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
+++ b/src/window.h
@@ -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 {