mirror of
https://github.com/PabloMK7/citra.git
synced 2024-11-28 10:20:17 +00:00
math_util: Always initialize members of Rectangle
Prevents potentially using the members uninitialized.
This commit is contained in:
parent
5e658efdb8
commit
23e8dd66c4
1 changed files with 4 additions and 4 deletions
|
@ -19,10 +19,10 @@ 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() = default;
|
||||
|
||||
|
|
Loading…
Reference in a new issue