Skip to content
Snippets Groups Projects
Commit f2a03468 authored by Lioncash's avatar Lioncash
Browse files

math_util: Always initialize members of Rectangle

Prevents potentially using the members uninitialized.
parent a03c644a
No related branches found
No related tags found
No related merge requests found
......@@ -19,12 +19,12 @@ inline bool IntervalsIntersect(unsigned start0, unsigned length0, unsigned start
template <class T>
struct Rectangle {
T left;
T top;
T right;
T bottom;
T left{};
T top{};
T right{};
T bottom{};
Rectangle() {}
Rectangle() = default;
Rectangle(T left, T top, T right, T bottom)
: left(left), top(top), right(right), bottom(bottom) {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment