mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Zero initialize all pointer class and struct members
This prevents the pitfall of UB when checking if they have been assigned something valid by comparing to nullptr.
This commit is contained in:
parent
53317bbe14
commit
f8ab79e68a
258 changed files with 2398 additions and 2421 deletions
|
|
@ -38,8 +38,8 @@
|
|||
class PropertySelector : public ConfirmationDialog {
|
||||
GDCLASS(PropertySelector, ConfirmationDialog);
|
||||
|
||||
LineEdit *search_box;
|
||||
Tree *search_options;
|
||||
LineEdit *search_box = nullptr;
|
||||
Tree *search_options = nullptr;
|
||||
|
||||
void _text_changed(const String &p_newtext);
|
||||
void _sbox_input(const Ref<InputEvent> &p_ie);
|
||||
|
|
@ -48,14 +48,14 @@ class PropertySelector : public ConfirmationDialog {
|
|||
void _item_selected();
|
||||
void _hide_requested();
|
||||
|
||||
EditorHelpBit *help_bit;
|
||||
EditorHelpBit *help_bit = nullptr;
|
||||
|
||||
bool properties;
|
||||
String selected;
|
||||
Variant::Type type;
|
||||
String base_type;
|
||||
ObjectID script;
|
||||
Object *instance;
|
||||
Object *instance = nullptr;
|
||||
bool virtuals_only = false;
|
||||
|
||||
Vector<Variant::Type> type_filter;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue