From 09641ec313814b90298e42af05934f16c23ac291 Mon Sep 17 00:00:00 2001 From: Lioncash <mathew1800@gmail.com> Date: Tue, 20 Oct 2015 20:11:25 -0400 Subject: [PATCH] MathUtil: Default initialize Rectangle class data members Puts Rectangles into a valid state upon creation --- Source/Core/Common/MathUtil.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Core/Common/MathUtil.h b/Source/Core/Common/MathUtil.h index b8642bf80d..253ac5c2a0 100644 --- a/Source/Core/Common/MathUtil.h +++ b/Source/Core/Common/MathUtil.h @@ -117,10 +117,10 @@ double ApproximateReciprocal(double val); template<class T> struct Rectangle { - T left; - T top; - T right; - T bottom; + T left{}; + T top{}; + T right{}; + T bottom{}; Rectangle() { }