MathUtil: Default initialize Rectangle class data members
Puts Rectangles into a valid state upon creation
This commit is contained in:
parent
dddc834c14
commit
09641ec313
|
@ -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()
|
||||
{ }
|
||||
|
|
Loading…
Reference in New Issue