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
+1 -1
View File
@@ -28,7 +28,7 @@
public: \
DECLARE_PREDICTABLE(); \
DECLARE_CLIENTCLASS(); \
C_##className() {}; \
C_##className() = default; \
private: \
C_##className( const C_##className & ); \
}; \
+1 -1
View File
@@ -305,7 +305,7 @@ C_BaseEntityClassList::~C_BaseEntityClassList()
class CDataChangedEvent
{
public:
CDataChangedEvent() {}
CDataChangedEvent() = default;
CDataChangedEvent( IClientNetworkable *ent, DataUpdateType_t updateType, int *pStoredEvent )
{
m_pEntity = ent;
+1 -1
View File
@@ -273,7 +273,7 @@ private:
template<typename Type>
struct CInterpolatedVarEntryBase<Type, false>
{
CInterpolatedVarEntryBase() {}
CInterpolatedVarEntryBase() = default;
~CInterpolatedVarEntryBase() {}
const Type *GetValue() const { return &value; }
+2 -2
View File
@@ -53,7 +53,7 @@ private:
Vector deltavelocity;
trace_t trace;
touchlist_t() {}
touchlist_t() = default;
private:
touchlist_t( const touchlist_t &src );
@@ -278,4 +278,4 @@ void CMoveHelperClient::PlayerSetAnimation( PLAYER_ANIM eAnim )
bool CMoveHelperClient::IsWorldEntity( const CBaseHandle &handle )
{
return handle == cl_entitylist->GetNetworkableHandle( 0 );
}
}
+1 -7
View File
@@ -41,7 +41,7 @@ extern IVEngineClient *engine;
class CCollisionEvent : public IPhysicsCollisionEvent, public IPhysicsCollisionSolver, public IPhysicsObjectEvent
{
public:
CCollisionEvent( void );
CCollisionEvent( void ) = default;
void ObjectSound( int index, vcollisionevent_t *pEvent );
void PreCollision( vcollisionevent_t *pEvent ) {}
@@ -479,12 +479,6 @@ void PhysicsSimulate()
g_PhysicsSystem.PhysicsSimulate();
}
CCollisionEvent::CCollisionEvent( void )
{
}
void CCollisionEvent::ObjectSound( int index, vcollisionevent_t *pEvent )
{
IPhysicsObject *pObject = pEvent->pObjects[index];
+1 -3
View File
@@ -715,9 +715,7 @@ class CViewEffectsSaveRestoreBlockHandler : public CDefSaveRestoreBlockHandler
{
struct QueuedItem_t;
public:
CViewEffectsSaveRestoreBlockHandler()
{
}
CViewEffectsSaveRestoreBlockHandler() = default;
const char *GetBlockName()
{
+1 -3
View File
@@ -259,10 +259,8 @@ private:
class CWorldListCache
{
public:
CWorldListCache()
{
CWorldListCache() = default;
}
void Flush()
{
for ( int i = m_Entries.FirstInorder(); i != m_Entries.InvalidIndex(); i = m_Entries.NextInorder( i ) )