diff options
| author | 2018-08-03 11:00:10 -0400 | |
|---|---|---|
| committer | 2018-08-03 11:00:10 -0400 | |
| commit | ef9433411d8f0c84b89da26ee8580bc5a44bbd50 (patch) | |
| tree | 6ddc4d57ef229624bb695f23c6f85a67e995c18f | |
| parent | Merge pull request #892 from lioncash/global (diff) | |
| parent | math_util: Always initialize members of Rectangle (diff) | |
| download | yuzu-ef9433411d8f0c84b89da26ee8580bc5a44bbd50.tar.gz yuzu-ef9433411d8f0c84b89da26ee8580bc5a44bbd50.tar.xz yuzu-ef9433411d8f0c84b89da26ee8580bc5a44bbd50.zip | |
Merge pull request #900 from lioncash/init
math_util: Always initialize members of Rectangle
| -rw-r--r-- | src/common/math_util.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/common/math_util.h b/src/common/math_util.h index c6a83c953..343cdd902 100644 --- a/src/common/math_util.h +++ b/src/common/math_util.h | |||
| @@ -19,12 +19,12 @@ inline bool IntervalsIntersect(unsigned start0, unsigned length0, unsigned start | |||
| 19 | 19 | ||
| 20 | template <class T> | 20 | template <class T> |
| 21 | struct Rectangle { | 21 | struct Rectangle { |
| 22 | T left; | 22 | T left{}; |
| 23 | T top; | 23 | T top{}; |
| 24 | T right; | 24 | T right{}; |
| 25 | T bottom; | 25 | T bottom{}; |
| 26 | 26 | ||
| 27 | Rectangle() {} | 27 | Rectangle() = default; |
| 28 | 28 | ||
| 29 | Rectangle(T left, T top, T right, T bottom) | 29 | Rectangle(T left, T top, T right, T bottom) |
| 30 | : left(left), top(top), right(right), bottom(bottom) {} | 30 | : left(left), top(top), right(right), bottom(bottom) {} |