From e090631b4c9058f3c7d7f87b9e0f2da85cf85d64 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Mon, 14 Mar 2011 10:50:39 -0400 Subject: [PATCH] Make the others behave the same way. Almost 10K warnings were removed from these two commits. Can we find the others? --- src/RageTypes.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/RageTypes.h b/src/RageTypes.h index f367114b8b..388a1d1580 100644 --- a/src/RageTypes.h +++ b/src/RageTypes.h @@ -100,9 +100,9 @@ struct lua_State; struct RageVector2 { public: - RageVector2() : x(0), y(0) {} - RageVector2( const float * f ) { x=f[0]; y=f[1]; } - RageVector2( float x1, float y1 ) { x=x1; y=y1; } + RageVector2(): x(0), y(0) {} + RageVector2( const float * f ): x(f[0]), y(f[1]) {} + RageVector2( float x1, float y1 ): x(x1), y(y1) {} // casting operator float* () { return &x; }; @@ -130,8 +130,8 @@ struct RageVector3 { public: RageVector3(): x(0), y(0), z(0) {} - RageVector3( const float * f ) { x=f[0]; y=f[1]; z=f[2]; } - RageVector3( float x1, float y1, float z1 ) { x=x1; y=y1; z=z1; } + RageVector3( const float * f ): x(f[0]), y(f[1]), z(f[2]) {} + RageVector3( float x1, float y1, float z1 ): x(x1), y(y1), z(z1) {} // casting operator float* () { return &x; }; @@ -159,8 +159,8 @@ struct RageVector4 { public: RageVector4(): x(0), y(0), z(0), w(0) {} - RageVector4( const float * f ) { x=f[0]; y=f[1]; z=f[2]; w=f[3]; } - RageVector4( float x1, float y1, float z1, float w1 ) { x=x1; y=y1; z=z1; w=w1; } + RageVector4( const float * f ): x(f[0]), y(f[1]), z(f[2]), w(f[3]) {} + RageVector4( float x1, float y1, float z1, float w1 ): x(x1), y(y1), z(z1), w(w1) {} // casting operator float* () { return &x; };