summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-10 13:54:20 +0000
committerrubidium <rubidium@openttd.org>2008-05-10 13:54:20 +0000
commit83664c8bc450e0874a2997da2ebc9cd7c39ee50b (patch)
tree58c877d4b714a34bfb14dddce187df74c2be7494
parent89c15ecb23a5d5b8c61fce86926cedb1a9c32f45 (diff)
downloadopenttd-83664c8bc450e0874a2997da2ebc9cd7c39ee50b.tar.xz
(svn r13031) -Codechange: make AssignWidgetToWindow a static function instead of a global one as it should only be used from window.cpp.
-rw-r--r--src/window.cpp2
-rw-r--r--src/window_gui.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 24b2aae8f..2dc00a318 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -860,7 +860,7 @@ bool IsWindowOfPrototype(const Window *w, const Widget *widget)
* \c w->original_widget points to the original widgets,
* \c w->widget_count contains number of widgets in the allocated memory.
*/
-void AssignWidgetToWindow(Window *w, const Widget *widget)
+static void AssignWidgetToWindow(Window *w, const Widget *widget)
{
w->original_widget = widget;
diff --git a/src/window_gui.h b/src/window_gui.h
index a20c005f7..5872c6809 100644
--- a/src/window_gui.h
+++ b/src/window_gui.h
@@ -652,7 +652,6 @@ Window *BringWindowToFrontById(WindowClass cls, WindowNumber number);
Window *FindWindowFromPt(int x, int y);
bool IsWindowOfPrototype(const Window *w, const Widget *widget);
-void AssignWidgetToWindow(Window *w, const Widget *widget);
/**
* Open a new window.