diff options
author | rubidium <rubidium@openttd.org> | 2009-11-24 16:54:52 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-11-24 16:54:52 +0000 |
commit | 75bd9858760371759aa190aaf214bfa629694824 (patch) | |
tree | a4c7a95cf26db289a8056379b57f65d5cfd1b506 /src/widget_type.h | |
parent | 8193dad1066ce1b523e4f936c87fddbb944ff30b (diff) | |
download | openttd-75bd9858760371759aa190aaf214bfa629694824.tar.xz |
(svn r18272) -Codechange: make FindScrollbar a const function
Diffstat (limited to 'src/widget_type.h')
-rw-r--r-- | src/widget_type.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/widget_type.h b/src/widget_type.h index 7666ff222..0d8db9ec9 100644 --- a/src/widget_type.h +++ b/src/widget_type.h @@ -251,7 +251,7 @@ public: /* virtual */ void FillNestedArray(NWidgetBase **array, uint length); /* virtual */ NWidgetCore *GetWidgetFromPos(int x, int y); - virtual Scrollbar *FindScrollbar(Window *w, bool allow_next = true) = 0; + virtual Scrollbar *FindScrollbar(Window *w, bool allow_next = true) const = 0; NWidgetDisplay disp_flags; ///< Flags that affect display and interaction with the widget. Colours colour; ///< Colour of this widget. @@ -428,7 +428,7 @@ public: /* virtual */ void Draw(const Window *w); /* virtual */ NWidgetCore *GetWidgetFromPos(int x, int y); /* virtual */ NWidgetBase *GetWidgetOfType(WidgetType tp); - /* virtual */ Scrollbar *FindScrollbar(Window *w, bool allow_next = true); + /* virtual */ Scrollbar *FindScrollbar(Window *w, bool allow_next = true) const; private: NWidgetPIPContainer *child; ///< Child widget. @@ -448,7 +448,7 @@ public: /* virtual */ void SetupSmallestSize(Window *w, bool init_array); /* virtual */ void Draw(const Window *w); - /* virtual */ Scrollbar *FindScrollbar(Window *w, bool allow_next = true); + /* virtual */ Scrollbar *FindScrollbar(Window *w, bool allow_next = true) const; void InitializeViewport(Window *w, uint32 follow_flags, ZoomLevel zoom); void UpdateViewportCoordinates(Window *w); @@ -462,7 +462,7 @@ public: /* virtual */ void SetupSmallestSize(Window *w, bool init_array); /* virtual */ void Draw(const Window *w); - /* virtual */ Scrollbar *FindScrollbar(Window *w, bool allow_next = true); + /* virtual */ Scrollbar *FindScrollbar(Window *w, bool allow_next = true) const; bool ButtonHit(const Point &pt); |