From bf75a0a03ac910879ee91cd29a4581c304edc644 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 19 Feb 2021 18:18:38 -0700 Subject: [PATCH] m[dispatch] Use inline class member initialization Let's see how bots like this... --- src/hb-dispatch.hh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hb-dispatch.hh b/src/hb-dispatch.hh index 7eace86e5..4b2b65a8d 100644 --- a/src/hb-dispatch.hh +++ b/src/hb-dispatch.hh @@ -38,7 +38,6 @@ template struct hb_dispatch_context_t { - hb_dispatch_context_t () : debug_depth (0) {} private: /* https://en.wikipedia.org/wiki/Curiously_recurring_template_pattern */ const Context* thiz () const { return static_cast (this); } @@ -54,7 +53,7 @@ struct hb_dispatch_context_t { return obj.dispatch (thiz (), hb_forward (ds)...); } static return_t no_dispatch_return_value () { return Context::default_return_value (); } static bool stop_sublookup_iteration (const return_t r HB_UNUSED) { return false; } - unsigned debug_depth; + unsigned debug_depth = 0; };