mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 06:15:04 +00:00
(svn r13031) -Codechange: make AssignWidgetToWindow a static function instead of a global one as it should only be used from window.cpp.
This commit is contained in:
parent
89c15ecb23
commit
83664c8bc4
@ -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;
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user