diff --git a/src/airport_gui.cpp b/src/airport_gui.cpp --- a/src/airport_gui.cpp +++ b/src/airport_gui.cpp @@ -551,7 +551,7 @@ static const NWidgetPart _nested_build_a NWidget(NWID_VSCROLLBAR, COLOUR_GREY, BAIRW_SCROLLBAR), EndContainer(), NWidget(NWID_HORIZONTAL), - NWidget(WWT_PUSHARROWBTN, COLOUR_GREY, BAIRW_LAYOUT_DECREASE), SetMinimalSize(12, 0),SetDataTip(AWV_DECREASE, STR_NULL), + NWidget(WWT_PUSHARROWBTN, COLOUR_GREY, BAIRW_LAYOUT_DECREASE), SetMinimalSize(12, 0), SetDataTip(AWV_DECREASE, STR_NULL), NWidget(WWT_LABEL, COLOUR_GREY, BAIRW_LAYOUT_NUM), SetResize(1, 0), SetFill(1, 0), SetDataTip(STR_BLACK_STRING, STR_NULL), NWidget(WWT_PUSHARROWBTN, COLOUR_GREY, BAIRW_LAYOUT_INCREASE), SetMinimalSize(12, 0), SetDataTip(AWV_INCREASE, STR_NULL), EndContainer(), diff --git a/src/cargopacket.cpp b/src/cargopacket.cpp --- a/src/cargopacket.cpp +++ b/src/cargopacket.cpp @@ -276,7 +276,7 @@ bool CargoList::MoveTo(Tother_ins max_move -= cp->count; this->packets.erase(it++); static_cast(this)->RemoveFromCache(cp); - switch(mta) { + switch (mta) { case MTA_FINAL_DELIVERY: payment->PayFinalDelivery(cp, cp->count); delete cp; diff --git a/src/hotkeys.cpp b/src/hotkeys.cpp --- a/src/hotkeys.cpp +++ b/src/hotkeys.cpp @@ -73,7 +73,7 @@ static uint16 ParseCode(const char *star } } if (end - start == 1) { - if (*start >= 'a' && *start <= 'z') return *start - ('a' - 'A'); + if (*start >= 'a' && *start <= 'z') return *start - ('a'-'A'); return *start; } return 0; diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp --- a/src/industry_gui.cpp +++ b/src/industry_gui.cpp @@ -796,7 +796,7 @@ public: virtual void SetStringParameters(int widget) const { - if (widget== IVW_CAPTION) SetDParam(0, this->window_number); + if (widget == IVW_CAPTION) SetDParam(0, this->window_number); } virtual void UpdateWidgetSize(int widget, Dimension *size, const Dimension &padding, Dimension *fill, Dimension *resize) diff --git a/src/order_gui.cpp b/src/order_gui.cpp --- a/src/order_gui.cpp +++ b/src/order_gui.cpp @@ -1428,7 +1428,7 @@ public: static Hotkey order_hotkeys[]; }; -Hotkey OrdersWindow::order_hotkeys[]= { +Hotkey OrdersWindow::order_hotkeys[] = { Hotkey('D', "skip", 0, &OrdersWindow::OrderClick_Skip), Hotkey('F', "delete", 0, &OrdersWindow::OrderClick_Delete), Hotkey('G', "goto", 0, &OrdersWindow::OrderClick_Goto), diff --git a/src/timetable_gui.cpp b/src/timetable_gui.cpp --- a/src/timetable_gui.cpp +++ b/src/timetable_gui.cpp @@ -395,7 +395,7 @@ struct TimetableWindow : Window { TextColour colour = (i == selected) ? TC_WHITE : TC_BLACK; if (order->IsType(OT_CONDITIONAL)) { string = STR_TIMETABLE_NO_TRAVEL; - } else if(order->IsType(OT_AUTOMATIC)) { + } else if (order->IsType(OT_AUTOMATIC)) { string = STR_TIMETABLE_NOT_TIMETABLEABLE; colour = ((i == selected) ? TC_SILVER : TC_GREY) | TC_NO_SHADE; } else if (order->travel_time == 0) { diff --git a/src/vehicle.cpp b/src/vehicle.cpp --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -2242,7 +2242,7 @@ void Vehicle::RemoveFromShared() Order *Vehicle::GetNextManualOrder(int index) const { Order *order = this->GetOrder(index); - while(order != NULL && order->IsType(OT_AUTOMATIC)) { + while (order != NULL && order->IsType(OT_AUTOMATIC)) { order = order->next; } return order;