yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

math_util: Always initialize members of Rectangle

Prevents potentially using the members uninitialized.
This commit is contained in:
Lioncash 2018-08-02 10:47:31 -04:00
parent a03c644aed
commit f2a03468b1
1 changed files with 5 additions and 5 deletions

View File

@ -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) {}