From 3bc0a4ed3ee3b7e7ea084adb431f1afdad52dfad Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 30 Oct 2009 07:51:33 +0000 Subject: (svn r17903) -Codechange: don't get a modifiable NWidget from a const Window --- src/widget_type.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/widget_type.h') diff --git a/src/widget_type.h b/src/widget_type.h index e655a465f..f273b2250 100644 --- a/src/widget_type.h +++ b/src/widget_type.h @@ -308,9 +308,9 @@ public: void SetDataTip(uint16 widget_data, StringID tool_tip); inline void SetLowered(bool lowered); - inline bool IsLowered(); + inline bool IsLowered() const; inline void SetDisabled(bool disabled); - inline bool IsDisabled(); + inline bool IsDisabled() const; void StoreWidgets(Widget *widgets, int length, bool left_moving, bool top_moving, bool rtl); /* virtual */ void FillNestedArray(NWidgetBase **array, uint length); @@ -335,7 +335,7 @@ inline void NWidgetCore::SetLowered(bool lowered) } /** Return whether the widget is lowered. */ -inline bool NWidgetCore::IsLowered() +inline bool NWidgetCore::IsLowered() const { return HasBit(this->disp_flags, NDB_LOWERED); } @@ -350,7 +350,7 @@ inline void NWidgetCore::SetDisabled(bool disabled) } /** Return whether the widget is disabled. */ -inline bool NWidgetCore::IsDisabled() +inline bool NWidgetCore::IsDisabled() const { return HasBit(this->disp_flags, NDB_DISABLED); } -- cgit v1.2.3-54-g00ecf