summaryrefslogtreecommitdiff
path: root/src/widget_type.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-10-30 07:51:33 +0000
committerrubidium <rubidium@openttd.org>2009-10-30 07:51:33 +0000
commit3bc0a4ed3ee3b7e7ea084adb431f1afdad52dfad (patch)
tree8ef956e7e6efb6efd5c0a5a825eaac12149d3441 /src/widget_type.h
parent87ea1f1dcd16079c064474e298a4931834e5a31e (diff)
downloadopenttd-3bc0a4ed3ee3b7e7ea084adb431f1afdad52dfad.tar.xz
(svn r17903) -Codechange: don't get a modifiable NWidget from a const Window
Diffstat (limited to 'src/widget_type.h')
-rw-r--r--src/widget_type.h8
1 files changed, 4 insertions, 4 deletions
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);
}