summaryrefslogtreecommitdiff
path: root/editor/plugins/script_editor_plugin.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-04-05 16:12:45 +0200
committerGitHub <noreply@github.com>2019-04-05 16:12:45 +0200
commita61ad365f526e7acdbc556abc5678cd225e120d7 (patch)
tree676bce820159900632ec4d239f60c6edd9230e9b /editor/plugins/script_editor_plugin.cpp
parent696be497284e95e4ba70c88ff52bc6255af81bb8 (diff)
parentfc370b3feb419fdc1a8139bdf01f1dacf868ca1f (diff)
Merge pull request #27677 from akien-mga/Wimplicit-fallthrough
Fix -Wimplicit-fallthrough warnings from GCC 8
Diffstat (limited to 'editor/plugins/script_editor_plugin.cpp')
-rw-r--r--editor/plugins/script_editor_plugin.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp
index 89e3327a3a..3a61277f36 100644
--- a/editor/plugins/script_editor_plugin.cpp
+++ b/editor/plugins/script_editor_plugin.cpp
@@ -849,8 +849,7 @@ void ScriptEditor::_file_dialog_action(String p_file) {
}
file->close();
memdelete(file);
-
- // fallthrough to open the file.
+ FALLTHROUGH;
}
case FILE_OPEN: {