mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-23 15:22:45 +01:00
Merge pull request #900 from lioncash/init
math_util: Always initialize members of Rectangle
This commit is contained in:
commit
ef9433411d
1 changed files with 5 additions and 5 deletions
|
@ -19,12 +19,12 @@ 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() {}
|
Rectangle() = default;
|
||||||
|
|
||||||
Rectangle(T left, T top, T right, T bottom)
|
Rectangle(T left, T top, T right, T bottom)
|
||||||
: left(left), top(top), right(right), bottom(bottom) {}
|
: left(left), top(top), right(right), bottom(bottom) {}
|
||||||
|
|
Loading…
Reference in a new issue