mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +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
|
@ -43,12 +43,12 @@ class ShaderGlobalsEditorInterface;
|
|||
class ShaderGlobalsEditor : public VBoxContainer {
|
||||
GDCLASS(ShaderGlobalsEditor, VBoxContainer)
|
||||
|
||||
ShaderGlobalsEditorInterface *interface;
|
||||
EditorInspector *inspector;
|
||||
ShaderGlobalsEditorInterface *interface = nullptr;
|
||||
EditorInspector *inspector = nullptr;
|
||||
|
||||
LineEdit *variable_name;
|
||||
OptionButton *variable_type;
|
||||
Button *variable_add;
|
||||
LineEdit *variable_name = nullptr;
|
||||
OptionButton *variable_type = nullptr;
|
||||
Button *variable_add = nullptr;
|
||||
|
||||
void _variable_added();
|
||||
void _variable_deleted(const String &p_variable);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue