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.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/core/print_string.h b/core/print_string.h
index d83cc35dd6..4d03f4a6de 100644
--- a/core/print_string.h
+++ b/core/print_string.h
@@ -38,17 +38,12 @@ extern void (*_print_func)(String);
typedef void (*PrintHandlerFunc)(void *, const String &p_string, bool p_error);
struct PrintHandlerList {
+ PrintHandlerFunc printfunc = nullptr;
+ void *userdata = nullptr;
- PrintHandlerFunc printfunc;
- void *userdata;
+ PrintHandlerList *next = nullptr;
- PrintHandlerList *next;
-
- PrintHandlerList() {
- printfunc = 0;
- next = 0;
- userdata = 0;
- }
+ PrintHandlerList() {}
};
void add_print_handler(PrintHandlerList *p_handler);