summaryrefslogtreecommitdiff
path: root/core/print_string.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/print_string.h')
-rw-r--r--core/print_string.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/core/print_string.h b/core/print_string.h
index d83cc35dd6..3e9125bddc 100644
--- a/core/print_string.h
+++ b/core/print_string.h
@@ -39,16 +39,12 @@ typedef void (*PrintHandlerFunc)(void *, const String &p_string, bool p_error);
struct PrintHandlerList {
- PrintHandlerFunc printfunc;
- void *userdata;
+ PrintHandlerFunc printfunc = nullptr;
+ void *userdata = nullptr;
- PrintHandlerList *next;
+ PrintHandlerList *next = nullptr;
- PrintHandlerList() {
- printfunc = 0;
- next = 0;
- userdata = 0;
- }
+ PrintHandlerList() {}
};
void add_print_handler(PrintHandlerList *p_handler);