diff options
| author | Matthias Melcher <github@matthiasm.com> | 2024-10-17 14:17:39 +0200 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2024-10-17 14:17:44 +0200 |
| commit | c45493096644843cccd156d2ff85b67f7b63ae37 (patch) | |
| tree | 1f5f045f9128cc0ee6213d34fd3d9be18bce21c6 | |
| parent | f269367d41a72005b142c3d18cd053a7587a9284 (diff) | |
FLUID: Fixes uninitialized class member
| -rw-r--r-- | fluid/Fl_Type.cxx | 45 |
1 files changed, 24 insertions, 21 deletions
diff --git a/fluid/Fl_Type.cxx b/fluid/Fl_Type.cxx index 5847fbddc..eada84e5e 100644 --- a/fluid/Fl_Type.cxx +++ b/fluid/Fl_Type.cxx @@ -489,30 +489,33 @@ void update_visibility_flag(Fl_Type *p) { Constructor and base for any node in the widget tree. */ Fl_Type::Fl_Type() : -uid_(0), -code_static_start(-1), code_static_end(-1), -code1_start(-1), code1_end(-1), -code2_start(-1), code2_end(-1), -header1_start(-1), header1_end(-1), -header2_start(-1), header2_end(-1), -header_static_start(-1), header_static_end(-1), -proj1_start(-1), proj1_end(-1), -proj2_start(-1), proj2_end(-1) + name_(NULL), + label_(NULL), + callback_(NULL), + user_data_(NULL), + user_data_type_(NULL), + comment_(NULL), + uid_(0), + parent(NULL), + new_selected(0), + selected(0), + folded_(0), + visible(0), + level(0), + next(NULL), prev(NULL), + factory(NULL), + code_static_start(-1), code_static_end(-1), + code1_start(-1), code1_end(-1), + code2_start(-1), code2_end(-1), + header1_start(-1), header1_end(-1), + header2_start(-1), header2_end(-1), + header_static_start(-1), header_static_end(-1), + proj1_start(-1), proj1_end(-1), + proj2_start(-1), proj2_end(-1) { - factory = 0; - parent = 0; - next = prev = 0; - selected = new_selected = 0; - visible = 0; - name_ = 0; - label_ = 0; - user_data_ = 0; - user_data_type_ = 0; - callback_ = 0; - comment_ = 0; - level = 0; } + /** Destructor for any node in the tree. |
