Make the others behave the same way.

Almost 10K warnings were removed from these two commits.

Can we find the others?
This commit is contained in:
Jason Felds
2011-03-14 10:50:39 -04:00
parent 33af1ba294
commit e090631b4c
+7 -7
View File
@@ -100,9 +100,9 @@ struct lua_State;
struct RageVector2 struct RageVector2
{ {
public: public:
RageVector2() : x(0), y(0) {} RageVector2(): x(0), y(0) {}
RageVector2( const float * f ) { x=f[0]; y=f[1]; } RageVector2( const float * f ): x(f[0]), y(f[1]) {}
RageVector2( float x1, float y1 ) { x=x1; y=y1; } RageVector2( float x1, float y1 ): x(x1), y(y1) {}
// casting // casting
operator float* () { return &x; }; operator float* () { return &x; };
@@ -130,8 +130,8 @@ struct RageVector3
{ {
public: public:
RageVector3(): x(0), y(0), z(0) {} RageVector3(): x(0), y(0), z(0) {}
RageVector3( const float * f ) { x=f[0]; y=f[1]; z=f[2]; } 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( float x1, float y1, float z1 ): x(x1), y(y1), z(z1) {}
// casting // casting
operator float* () { return &x; }; operator float* () { return &x; };
@@ -159,8 +159,8 @@ struct RageVector4
{ {
public: public:
RageVector4(): x(0), y(0), z(0), w(0) {} 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( 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( float x1, float y1, float z1, float w1 ): x(x1), y(y1), z(z1), w(w1) {}
// casting // casting
operator float* () { return &x; }; operator float* () { return &x; };