diff options
author | Markus Sauermann <6299227+Sauermann@users.noreply.github.com> | 2023-06-09 17:00:50 +0200 |
---|---|---|
committer | Markus Sauermann <6299227+Sauermann@users.noreply.github.com> | 2023-06-21 22:37:26 +0200 |
commit | 890fdd56df313fbf2035492f8e33fa2516ee23c5 (patch) | |
tree | fb3d904883d2cbca7e491e621712282bc12c219d /platform/android | |
parent | f2ce0b6741049b69efb455394b8a161f68a468a6 (diff) | |
download | redot-engine-890fdd56df313fbf2035492f8e33fa2516ee23c5.tar.gz |
Code simplifications
CPPcheck found most of them.
no need to assign the variable twice:
- AnimationTrackEditTypeAudio
- SSEffects
variable is assigned in all if-else clauses:
- EditorHelp
- AndroidInputHandler
- MenuBar
- ShaderCompiler
same if clause:
- ItemList
clearing an empty bitfield has no effect:
- Viewport
Diffstat (limited to 'platform/android')
-rw-r--r-- | platform/android/android_input_handler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/android/android_input_handler.cpp b/platform/android/android_input_handler.cpp index 37a019eaa4..f6c8d6ce04 100644 --- a/platform/android/android_input_handler.cpp +++ b/platform/android/android_input_handler.cpp @@ -88,7 +88,7 @@ void AndroidInputHandler::process_key_event(int p_physical_keycode, int p_unicod ev.instantiate(); Key physical_keycode = godot_code_from_android_code(p_physical_keycode); - Key keycode = physical_keycode; + Key keycode; if (unicode == '\b') { // 0x08 keycode = Key::BACKSPACE; } else if (unicode == '\t') { // 0x09 |