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
+2 -2
View File
@@ -31,7 +31,7 @@ struct CachedPosNormTan_t
Vector m_Normal;
Vector4D m_TangentS;
CachedPosNormTan_t() {}
CachedPosNormTan_t() = default;
CachedPosNormTan_t( CachedPosNormTan_t const& src )
{
@@ -51,7 +51,7 @@ struct CachedPosNorm_t
Vector4DAligned m_Position;
Vector4DAligned m_Normal;
CachedPosNorm_t() {}
CachedPosNorm_t() = default;
CachedPosNorm_t( CachedPosNorm_t const& src )
{
+1 -1
View File
@@ -61,7 +61,7 @@ struct DecalClipState_t
// Union of the decal triangle clip flags above for each vert
int m_ClipFlags[16];
DecalClipState_t() {}
DecalClipState_t() = default;
private:
// Copy constructors are not allowed
+3 -3
View File
@@ -86,7 +86,7 @@ struct lightpos_t
float falloff; // light distance falloff
float dot; // light direction * delta;
lightpos_t() {}
lightpos_t() = default;
private:
// Copy constructors are not allowed
@@ -106,7 +106,7 @@ struct eyeballstate_t
Vector cornea; // world center of cornea
eyeballstate_t() {}
eyeballstate_t() = default;
private:
// Copy constructors are not allowed
@@ -170,7 +170,7 @@ struct DecalVertex_t
unsigned short m_Group;
#endif
DecalVertex_t() {}
DecalVertex_t() = default;
DecalVertex_t( const DecalVertex_t& src )
{
m_Position = src.m_Position;