summaryrefslogtreecommitdiff
path: root/src/misc_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2017-08-13 18:38:42 +0000
committerfrosch <frosch@openttd.org>2017-08-13 18:38:42 +0000
commitb4b98e51655012ea42dbc8ab9e455fbec0d04b39 (patch)
tree948fc802d5dfdca71454f6ce479e4f429e98488d /src/misc_gui.cpp
parent19bae485b028380fbdc94d02ebaecdf3ca23f932 (diff)
downloadopenttd-b4b98e51655012ea42dbc8ab9e455fbec0d04b39.tar.xz
(svn r27893) -Codechange: Use fallthrough attribute. (LordAro)
Diffstat (limited to 'src/misc_gui.cpp')
-rw-r--r--src/misc_gui.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp
index 2d3871ffb..03500c2a2 100644
--- a/src/misc_gui.cpp
+++ b/src/misc_gui.cpp
@@ -1007,10 +1007,12 @@ struct QueryStringWindow : public Window
switch (widget) {
case WID_QS_DEFAULT:
this->editbox.text.DeleteAll();
- /* FALL THROUGH */
+ FALLTHROUGH;
+
case WID_QS_OK:
this->OnOk();
- /* FALL THROUGH */
+ FALLTHROUGH;
+
case WID_QS_CANCEL:
delete this;
break;
@@ -1160,7 +1162,8 @@ struct QueryWindow : public Window {
this->proc(this->parent, true);
this->proc = NULL;
}
- /* FALL THROUGH */
+ FALLTHROUGH;
+
case WKC_ESC:
delete this;
return ES_HANDLED;