mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-15 08:50:06 +00:00
Common: Remove dangerous Vec[234] array constructors
They're not currently used, and it's easy to accidentally pass a single pointer argument to them, causing an out-of-bounds read.
This commit is contained in:
parent
26b68313b9
commit
6219654ded
@ -60,7 +60,6 @@ public:
|
||||
}
|
||||
|
||||
Vec2() = default;
|
||||
Vec2(const T a[2]) : x(a[0]), y(a[1]) {}
|
||||
Vec2(const T& _x, const T& _y) : x(_x), y(_y) {}
|
||||
|
||||
template <typename T2>
|
||||
@ -199,7 +198,6 @@ public:
|
||||
}
|
||||
|
||||
Vec3() = default;
|
||||
Vec3(const T a[3]) : x(a[0]), y(a[1]), z(a[2]) {}
|
||||
Vec3(const T& _x, const T& _y, const T& _z) : x(_x), y(_y), z(_z) {}
|
||||
|
||||
template <typename T2>
|
||||
@ -405,7 +403,6 @@ public:
|
||||
}
|
||||
|
||||
Vec4() = default;
|
||||
Vec4(const T a[4]) : x(a[0]), y(a[1]), z(a[2]), w(a[3]) {}
|
||||
Vec4(const T& _x, const T& _y, const T& _z, const T& _w) : x(_x), y(_y), z(_z), w(_w) {}
|
||||
|
||||
template <typename T2>
|
||||
|
Loading…
Reference in New Issue
Block a user