summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-08-03 17:00:10 +0200
committerGitHub <noreply@github.com>2018-08-03 17:00:10 +0200
commitef9433411d8f0c84b89da26ee8580bc5a44bbd50 (patch)
tree6ddc4d57ef229624bb695f23c6f85a67e995c18f /src/common
parentMerge pull request #892 from lioncash/global (diff)
parentmath_util: Always initialize members of Rectangle (diff)
downloadyuzu-ef9433411d8f0c84b89da26ee8580bc5a44bbd50.tar
yuzu-ef9433411d8f0c84b89da26ee8580bc5a44bbd50.tar.gz
yuzu-ef9433411d8f0c84b89da26ee8580bc5a44bbd50.tar.bz2
yuzu-ef9433411d8f0c84b89da26ee8580bc5a44bbd50.tar.lz
yuzu-ef9433411d8f0c84b89da26ee8580bc5a44bbd50.tar.xz
yuzu-ef9433411d8f0c84b89da26ee8580bc5a44bbd50.tar.zst
yuzu-ef9433411d8f0c84b89da26ee8580bc5a44bbd50.zip
Diffstat (limited to 'src/common')
-rw-r--r--src/common/math_util.h10
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
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) {}