mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-07 17:29:36 +00:00
Replace empty constructors with default constructors #88
This commit is contained in:
@@ -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 )
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user