Replace empty constructors with default constructors #88

This commit is contained in:
nillerusr
2022-11-05 14:23:05 +03:00
parent ba90de20d9
commit 8fbc002a37
97 changed files with 192 additions and 2620 deletions
+10 -10
View File
@@ -36,7 +36,16 @@ public:
vec_t x, y;
// Construction/destruction
Vector2D(void);
#if defined( _DEBUG ) && defined( VECTOR_PARANOIA )
inline Vector2D(void)
{
// Initialize to NAN to catch errors
x = y = VEC_T_NAN;
}
#else
Vector2D(void) = default;
#endif
Vector2D(vec_t X, vec_t Y);
Vector2D(const float *pFloat);
@@ -194,15 +203,6 @@ void Vector2DLerp(const Vector2D& src1, const Vector2D& src2, vec_t t, Vector2D&
//-----------------------------------------------------------------------------
// constructors
//-----------------------------------------------------------------------------
inline Vector2D::Vector2D(void)
{
#ifdef _DEBUG
// Initialize to NAN to catch errors
x = y = VEC_T_NAN;
#endif
}
inline Vector2D::Vector2D(vec_t X, vec_t Y)
{
x = X; y = Y;