diff options
| author | Rafał Mikrut <mikrutrafal@protonmail.com> | 2020-11-24 10:12:55 +0100 |
|---|---|---|
| committer | Rafał Mikrut <mikrutrafal@protonmail.com> | 2020-12-02 16:09:11 +0100 |
| commit | e1811b689b6854668ca690831df8603820b68573 (patch) | |
| tree | b13641bf9a704ec71f8ac90f3dd8d41a1174ae04 /editor/editor_node.h | |
| parent | d1231be1c8f8f2c16fd1047adcd3c7f997a07c1f (diff) | |
| download | redot-engine-e1811b689b6854668ca690831df8603820b68573.tar.gz | |
Initialize class/struct variables with default values in platform/ and editor/
Diffstat (limited to 'editor/editor_node.h')
| -rw-r--r-- | editor/editor_node.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/editor/editor_node.h b/editor/editor_node.h index dec28b0d2b..9d1a890f0e 100644 --- a/editor/editor_node.h +++ b/editor/editor_node.h @@ -107,10 +107,10 @@ public: String path; List<String> args; String output; - Thread *execute_output_thread; + Thread *execute_output_thread = nullptr; Mutex execute_output_mutex; - int exitcode; - volatile bool done; + int exitcode = 0; + volatile bool done = false; }; private: @@ -409,8 +409,8 @@ private: struct BottomPanelItem { String name; - Control *control; - Button *button; + Control *control = nullptr; + Button *button = nullptr; }; Vector<BottomPanelItem> bottom_panel_items; @@ -554,8 +554,8 @@ private: struct ExportDefer { String preset; String path; - bool debug; - bool pack_only; + bool debug = false; + bool pack_only = false; } export_defer; bool cmdline_export_mode; |
