Browse Source

Vector zero-initialize

Michael Ragazzon 3 years ago
parent
commit
6d367ceeb5

+ 1 - 1
Include/RmlUi/Core/Vector2.inl

@@ -30,7 +30,7 @@ namespace Rml {
 
 // Default constructor.
 template <typename Type>
-Vector2<Type>::Vector2() : x{0}, y{0}
+Vector2<Type>::Vector2() : x{}, y{}
 {}
 
 // Initialising constructor.

+ 1 - 1
Include/RmlUi/Core/Vector3.inl

@@ -32,7 +32,7 @@ namespace Rml {
 
 // Default constructor.
 template <typename Type>
-Vector3<Type>::Vector3() : x{0}, y{0}, z{0}
+Vector3<Type>::Vector3() : x{}, y{}, z{}
 {}
 
 // Initialising constructor.

+ 1 - 1
Include/RmlUi/Core/Vector4.inl

@@ -32,7 +32,7 @@ namespace Rml {
 
 // Default constructor.
 template <typename Type>
-Vector4<Type>::Vector4() : x{0}, y{0}, z{0}, w{0}
+Vector4<Type>::Vector4() : x{}, y{}, z{}, w{}
 {}
 
 // Initialising constructor.