summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-08-12 09:13:04 +0000
committerfrosch <frosch@openttd.org>2010-08-12 09:13:04 +0000
commit6e9c9c28d950a822beb0fb4e76d5ba40a247085c (patch)
tree62ebc1e27158efbab8eca1b6387ca5832ec43986 /src/window.cpp
parent55bd5de43d31c71e81d7a6164830374485a75cb4 (diff)
downloadopenttd-6e9c9c28d950a822beb0fb4e76d5ba40a247085c.tar.xz
(svn r20459) -Codechange: Remove the Scrollbar members of Window and make NWidgetScrollbar inherit from Scrollbar instead.
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 469e0c26b..09134b270 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -104,7 +104,7 @@ int Window::GetRowFromWidget(int clickpos, int widget, int padding, int line_hei
*/
const Scrollbar *Window::GetScrollbar(uint widnum) const
{
- return this->GetWidget<NWidgetScrollbar>(widnum)->GetScrollbar(this);
+ return this->GetWidget<NWidgetScrollbar>(widnum);
}
/**
@@ -114,7 +114,7 @@ const Scrollbar *Window::GetScrollbar(uint widnum) const
*/
Scrollbar *Window::GetScrollbar(uint widnum)
{
- return this->GetWidget<NWidgetScrollbar>(widnum)->GetScrollbar(this);
+ return this->GetWidget<NWidgetScrollbar>(widnum);
}
@@ -1304,7 +1304,7 @@ void Window::InitNested(const WindowDesc *desc, WindowNumber window_number)
}
/** Empty constructor, initialization has been moved to #InitNested() called from the constructor of the derived class. */
-Window::Window() : old_hscroll(false), old_vscroll(true), old_vscroll2(true), scrolling_scrollbar(-1)
+Window::Window() : scrolling_scrollbar(-1)
{
}