diff options
author | jmb462 <jmb462@gmail.com> | 2022-02-16 00:52:32 +0100 |
---|---|---|
committer | Jean-Michel Bernard <jmb462@gmail.com> | 2022-02-16 11:38:24 +0100 |
commit | dcd2a92af3cc85b50ee2c02dc64589da6d429e8c (patch) | |
tree | f46c8abb14e2677131c058625e9dee57babf131e /editor/debugger/editor_debugger_inspector.cpp | |
parent | f5b9cbaff6f0a058d08187b3124948ae68848cd0 (diff) | |
download | redot-engine-dcd2a92af3cc85b50ee2c02dc64589da6d429e8c.tar.gz |
Port existing _notification code to use switch statements (part 1/3)
Diffstat (limited to 'editor/debugger/editor_debugger_inspector.cpp')
-rw-r--r-- | editor/debugger/editor_debugger_inspector.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/editor/debugger/editor_debugger_inspector.cpp b/editor/debugger/editor_debugger_inspector.cpp index ad782c87cb..c111190ca3 100644 --- a/editor/debugger/editor_debugger_inspector.cpp +++ b/editor/debugger/editor_debugger_inspector.cpp @@ -107,14 +107,13 @@ void EditorDebuggerInspector::_bind_methods() { void EditorDebuggerInspector::_notification(int p_what) { switch (p_what) { - case NOTIFICATION_POSTINITIALIZE: + case NOTIFICATION_POSTINITIALIZE: { connect("object_id_selected", callable_mp(this, &EditorDebuggerInspector::_object_selected)); - break; - case NOTIFICATION_ENTER_TREE: + } break; + + case NOTIFICATION_ENTER_TREE: { edit(variables); - break; - default: - break; + } break; } } |