Fix 'class naming' linter issues
parent
5815db4062
commit
87fec23f4b
|
@ -183,7 +183,12 @@ bool ReadLong(std::istream &istr, long &l)
|
||||||
|
|
||||||
bool WriteFloat(std::ostream &ostr, float f)
|
bool WriteFloat(std::ostream &ostr, float f)
|
||||||
{
|
{
|
||||||
union {float fValue; unsigned int iValue;} u;
|
union TypeConverter {
|
||||||
|
float fValue;
|
||||||
|
unsigned int iValue;
|
||||||
|
};
|
||||||
|
|
||||||
|
TypeConverter u;
|
||||||
u.fValue = 0.0f;
|
u.fValue = 0.0f;
|
||||||
u.iValue = 0;
|
u.iValue = 0;
|
||||||
|
|
||||||
|
@ -193,7 +198,12 @@ bool WriteFloat(std::ostream &ostr, float f)
|
||||||
|
|
||||||
bool ReadFloat(std::istream &istr, float &f)
|
bool ReadFloat(std::istream &istr, float &f)
|
||||||
{
|
{
|
||||||
union {float fValue; unsigned int iValue;} u;
|
union TypeConverter {
|
||||||
|
float fValue;
|
||||||
|
unsigned int iValue;
|
||||||
|
};
|
||||||
|
|
||||||
|
TypeConverter u;
|
||||||
u.fValue = 0.0f;
|
u.fValue = 0.0f;
|
||||||
u.iValue = 0;
|
u.iValue = 0;
|
||||||
|
|
||||||
|
@ -204,7 +214,12 @@ bool ReadFloat(std::istream &istr, float &f)
|
||||||
|
|
||||||
bool WriteDouble(std::ostream &ostr, double d)
|
bool WriteDouble(std::ostream &ostr, double d)
|
||||||
{
|
{
|
||||||
union {double dValue; unsigned long iValue;} u;
|
union TypeConverter {
|
||||||
|
double dValue;
|
||||||
|
unsigned long iValue;
|
||||||
|
};
|
||||||
|
|
||||||
|
TypeConverter u;
|
||||||
u.dValue = 0.0;
|
u.dValue = 0.0;
|
||||||
u.iValue = 0;
|
u.iValue = 0;
|
||||||
|
|
||||||
|
@ -214,7 +229,12 @@ bool WriteDouble(std::ostream &ostr, double d)
|
||||||
|
|
||||||
bool ReadDouble(std::istream &istr, double &d)
|
bool ReadDouble(std::istream &istr, double &d)
|
||||||
{
|
{
|
||||||
union {double dValue; unsigned long iValue;} u;
|
union TypeConverter {
|
||||||
|
double dValue;
|
||||||
|
unsigned long iValue;
|
||||||
|
};
|
||||||
|
|
||||||
|
TypeConverter u;
|
||||||
u.dValue = 0.0;
|
u.dValue = 0.0;
|
||||||
u.iValue = 0;
|
u.iValue = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue