diff options
author | Campbell Barton <campbell@blender.org> | 2022-08-31 08:58:33 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-08-31 09:01:29 +0300 |
commit | 70035e64732415aee039196e81ab31554e5577b1 (patch) | |
tree | daa4a821962b0948fd038265fd16d95707b98fcb /source/blender/windowmanager/intern | |
parent | ff651a08b50cade1adf6e4d7a810500c88eb1987 (diff) |
Cleanup: break before the default case in switch statements
While missing the break before a default that only breaks isn't
an error, it means adding new cases needs to remember to add the
break for an existing case, changing the default case will also
result in an unintended fall-through.
Also avoid `default:;` and add an explicit break.
Diffstat (limited to 'source/blender/windowmanager/intern')
-rw-r--r-- | source/blender/windowmanager/intern/wm_event_system.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.cc b/source/blender/windowmanager/intern/wm_event_system.cc index 2bba0ac802d..3054708fbdb 100644 --- a/source/blender/windowmanager/intern/wm_event_system.cc +++ b/source/blender/windowmanager/intern/wm_event_system.cc @@ -1591,6 +1591,7 @@ static int wm_operator_call_internal(bContext *C, case WM_OP_EXEC_AREA: case WM_OP_EXEC_SCREEN: event = nullptr; + break; default: break; } |