# HG changeset patch # User Peter Nelson # Date 2024-01-15 22:49:23 # Node ID 8ab6ecb98d85537fa99280670c577aae0f9aa1f4 # Parent c71e869ee35b87ec8c12baaf572a27daaa8ccb64 Codechange: Remove redundant struct keyword. diff --git a/src/bootstrap_gui.cpp b/src/bootstrap_gui.cpp --- a/src/bootstrap_gui.cpp +++ b/src/bootstrap_gui.cpp @@ -32,7 +32,7 @@ #include "safeguards.h" /** Widgets for the background window to prevent smearing. */ -static const struct NWidgetPart _background_widgets[] = { +static const NWidgetPart _background_widgets[] = { NWidget(WWT_PANEL, COLOUR_DARK_BLUE, WID_BB_BACKGROUND), SetResize(1, 1), EndContainer(), }; diff --git a/src/console_gui.cpp b/src/console_gui.cpp --- a/src/console_gui.cpp +++ b/src/console_gui.cpp @@ -98,7 +98,7 @@ static inline void IConsoleResetHistoryP static const char *IConsoleHistoryAdd(const char *cmd); static void IConsoleHistoryNavigate(int direction); -static const struct NWidgetPart _nested_console_window_widgets[] = { +static const NWidgetPart _nested_console_window_widgets[] = { NWidget(WWT_EMPTY, INVALID_COLOUR, WID_C_BACKGROUND), SetResize(1, 1), }; diff --git a/src/main_gui.cpp b/src/main_gui.cpp --- a/src/main_gui.cpp +++ b/src/main_gui.cpp @@ -176,7 +176,7 @@ void FixTitleGameZoom(int zoom_adjust) vp->virtual_height = ScaleByZoom(vp->height, vp->zoom); } -static const struct NWidgetPart _nested_main_window_widgets[] = { +static const NWidgetPart _nested_main_window_widgets[] = { NWidget(NWID_VIEWPORT, INVALID_COLOUR, WID_M_VIEWPORT), SetResize(1, 1), };