diff options
author | J0an Josep <juanjo.ng.83@gmail.com> | 2017-08-15 17:56:34 +0200 |
---|---|---|
committer | frosch <github@elsenhans.name> | 2018-04-30 21:52:40 +0200 |
commit | cfb8092397709fe2276d8a5c5386c334b0a9199e (patch) | |
tree | 714fa04d7b38f6e37f518a33ed3d38a67cfeca4b /src/vehicle_gui.cpp | |
parent | 3f40cd505db78932cd355711d6294e6dc4446410 (diff) | |
download | openttd-cfb8092397709fe2276d8a5c5386c334b0a9199e.tar.xz |
Fix b4b98e5165: Use FALLTHROUGH attribute with correct indentation.
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r-- | src/vehicle_gui.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index f060191c9..62205ee5a 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -817,8 +817,8 @@ struct RefitWindow : public Window { Vehicle *v = Vehicle::Get(this->window_number); this->selected_vehicle = v->index; this->num_vehicles = UINT8_MAX; + FALLTHROUGH; } - FALLTHROUGH; case 2: { // The vehicle selection has changed; rebuild the entire list. if (!gui_scope) break; @@ -843,8 +843,8 @@ struct RefitWindow : public Window { this->information_width = max_width; this->ReInit(); } + FALLTHROUGH; } - FALLTHROUGH; case 1: // A new cargo has been selected. if (!gui_scope) break; @@ -905,8 +905,8 @@ struct RefitWindow : public Window { if (_ctrl_pressed) this->num_vehicles = UINT8_MAX; break; } + FALLTHROUGH; } - FALLTHROUGH; default: /* Clear the selection. */ @@ -940,8 +940,8 @@ struct RefitWindow : public Window { this->InvalidateData(1); if (click_count == 1) break; + FALLTHROUGH; } - FALLTHROUGH; case WID_VR_REFIT: // refit button if (this->cargo != NULL) { |