From 941d1bef54317d202167cbc4a8e41f50a30b252f Mon Sep 17 00:00:00 2001 From: "J. Eric Ivancich" Date: Tue, 26 Sep 2017 14:04:26 -0400 Subject: [PATCH] Change initialization of IndIntruHeapData to C++'s value-initialization to better future-proof the code. Since at the momeent they are scalars they'll be zero-initialized (i.e., to zero). However if they ever become something more complex, their default constructors will be called. Signed-off-by: J. Eric Ivancich --- src/dmclock_server.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/dmclock_server.h b/src/dmclock_server.h index 8c3c2e904ad..1f4f2ce0850 100644 --- a/src/dmclock_server.h +++ b/src/dmclock_server.h @@ -296,11 +296,11 @@ namespace crimson { // an idle client becoming unidle double prop_delta = 0.0; - c::IndIntruHeapData reserv_heap_data = 0; - c::IndIntruHeapData lim_heap_data = 0; - c::IndIntruHeapData ready_heap_data = 0; + c::IndIntruHeapData reserv_heap_data {}; + c::IndIntruHeapData lim_heap_data {}; + c::IndIntruHeapData ready_heap_data {}; #if USE_PROP_HEAP - c::IndIntruHeapData prop_heap_data = 0; + c::IndIntruHeapData prop_heap_data {}; #endif public: