From 10e17c30a38535e571e28d2a56046c76bda39a97 Mon Sep 17 00:00:00 2001 From: glx Date: Fri, 7 Dec 2007 17:42:15 +0000 Subject: [PATCH] (svn r11586) -Fix: make another widget 'accessor' function const when it should be const. --- src/window.cpp | 2 +- src/window.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/window.cpp b/src/window.cpp index e22c4c87e6..41dd28df97 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -134,7 +134,7 @@ void Window::RaiseButtons() } } -void Window::InvalidateWidget(byte widget_index) +void Window::InvalidateWidget(byte widget_index) const { const Widget *wi = &this->widget[widget_index]; diff --git a/src/window.h b/src/window.h index e98d99d248..7e5ff8d2c6 100644 --- a/src/window.h +++ b/src/window.h @@ -297,7 +297,7 @@ struct Window { 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 {