citra-emu
/
citra-canary
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 committed by zhupengfei
parent 5e658efdb8
commit 23e8dd66c4
1 changed files with 4 additions and 4 deletions

View File

@ -19,10 +19,10 @@ inline bool IntervalsIntersect(unsigned start0, unsigned length0, unsigned start
template <class T> template <class T>
struct Rectangle { struct Rectangle {
T left; T left{};
T top; T top{};
T right; T right{};
T bottom; T bottom{};
Rectangle() = default; Rectangle() = default;