From 23e8dd66c48fcde47dbde90fe884e6d33215780f Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 2 Aug 2018 10:47:31 -0400 Subject: [PATCH] math_util: Always initialize members of Rectangle Prevents potentially using the members uninitialized. --- src/common/math_util.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/math_util.h b/src/common/math_util.h index 35a1eda755..343cdd902f 100644 --- a/src/common/math_util.h +++ b/src/common/math_util.h @@ -19,10 +19,10 @@ inline bool IntervalsIntersect(unsigned start0, unsigned length0, unsigned start template struct Rectangle { - T left; - T top; - T right; - T bottom; + T left{}; + T top{}; + T right{}; + T bottom{}; Rectangle() = default;