You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +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:
@@ -65,9 +65,9 @@ class GradientReverseButton : public BaseButton {
|
||||
class EditorInspectorPluginGradient : public EditorInspectorPlugin {
|
||||
GDCLASS(EditorInspectorPluginGradient, EditorInspectorPlugin);
|
||||
|
||||
GradientEditor *editor;
|
||||
HBoxContainer *gradient_tools_hbox;
|
||||
GradientReverseButton *reverse_btn;
|
||||
GradientEditor *editor = nullptr;
|
||||
HBoxContainer *gradient_tools_hbox = nullptr;
|
||||
GradientReverseButton *reverse_btn = nullptr;
|
||||
|
||||
void _reverse_button_pressed();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user