Commit 19d011dc authored by Ivan Dokunov's avatar Ivan Dokunov

Style refactor

parent 22c82c61
......@@ -485,15 +485,13 @@ struct float4_t
float z;
float w;
float4_t():x(0.0f), y(0.0f), z(0.0f), w(0.0f)
{
}
float4_t(float _x, float _y, float _z, float _w):x(_x), y(_y), z(_z), w(_w)
{
}
float4_t(const float4 & f) : float4_t(f.x, f.y, f.z, f.w)
float4_t(const float4 & f) : float4_t(f.x, f.y, f.z, f.w)
{
}
......
......@@ -259,12 +259,12 @@ String & String::operator=(const String & str)
String & String::operator=(const char * str)
{
if (str != m_szString)
{
release();
m_szString = new char[strlen(str) + 1];
memcpy(m_szString, str, strlen(str) + 1);
}
if (str != m_szString)
{
release();
m_szString = new char[strlen(str) + 1];
memcpy(m_szString, str, strlen(str) + 1);
}
return(*this);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment