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
-4
View File
@@ -637,10 +637,6 @@ void CDemoRecorder::StartupDemoFile( void )
g_ClientDLL->OnDemoRecordStart( m_szDemoBaseName );
}
CDemoRecorder::CDemoRecorder()
{
}
CDemoRecorder::~CDemoRecorder()
{
CloseDemoFile();
+1 -1
View File
@@ -123,7 +123,7 @@ class CDemoRecorder : public IDemoRecorder
{
public:
~CDemoRecorder();
CDemoRecorder();
CDemoRecorder() = default;
CDemoFile *GetDemoFile( void );
int GetRecordingTick( void );
+1 -3
View File
@@ -56,9 +56,7 @@ CTSPool<TraceInfo_t> g_TraceInfoPool;
class CTraceInfoPool : public CTSList<TraceInfo_t *>
{
public:
CTraceInfoPool()
{
}
CTraceInfoPool() = default;
};
CTraceInfoPool g_TraceInfoPool;
+1 -9
View File
@@ -345,7 +345,7 @@ public:
class CColorOperationList
{
public:
CColorOperationList();
CColorOperationList() = default;
// Clears the list
void Clear();
@@ -376,14 +376,6 @@ private:
};
//-----------------------------------------------------------------------------
// Constructor
//-----------------------------------------------------------------------------
CColorOperationList::CColorOperationList()
{
}
//-----------------------------------------------------------------------------
// Clears the list
//-----------------------------------------------------------------------------
+1 -1
View File
@@ -47,7 +47,7 @@ public:
//
// Construction/Decontruction
//
CDispNode() {};
CDispNode() = default;
~CDispNode() {};
//=========================================================================
-6
View File
@@ -29,12 +29,6 @@ CClientSendProp::~CClientSendProp()
delete [] m_pTableName;
}
CClientSendTable::CClientSendTable()
{
}
CClientSendTable::~CClientSendTable()
{
delete [] m_SendTable.m_pNetTableName;
+1 -1
View File
@@ -50,7 +50,7 @@ private:
class CClientSendTable
{
public:
CClientSendTable();
CClientSendTable() = default;
~CClientSendTable();
int GetNumProps() const { return m_SendTable.m_nProps; }
+1 -3
View File
@@ -37,9 +37,7 @@ ConVar r_visualizelighttracesshowfulltrace( "r_visualizelighttracesshowfulltrace
//-----------------------------------------------------------------------------
struct LightVecState_t
{
LightVecState_t()
{
}
LightVecState_t() = default;
Ray_t m_Ray;
float m_HitFrac;
float* m_pTextureS;
+1 -5
View File
@@ -67,7 +67,7 @@ typedef enum
class CHostState
{
public:
CHostState();
CHostState() = default;
void Init();
void FrameUpdate( float time );
void SetNextState( HOSTSTATES nextState );
@@ -275,10 +275,6 @@ static void WatchDogHandler()
// Class implementation
//-----------------------------------------------------------------------------
CHostState::CHostState()
{
}
void CHostState::Init()
{
SetState( HS_RUN, true );
+1 -1
View File
@@ -1868,7 +1868,7 @@ struct ModelDebugOverlayData_t
DrawModelResults_t m_ModelResults;
Vector m_Origin;
ModelDebugOverlayData_t() {}
ModelDebugOverlayData_t() = default;
private:
ModelDebugOverlayData_t( const ModelDebugOverlayData_t &vOther );
-4
View File
@@ -26,10 +26,6 @@ extern ConVar sv_pure_consensus;
extern ConVar sv_pure_retiretime;
extern ConVar sv_pure_trace;
CPureServerWhitelist::CCommand::CCommand()
{
}
CPureServerWhitelist::CCommand::~CCommand()
{
}
+1 -1
View File
@@ -69,7 +69,7 @@ private:
class CCommand
{
public:
CCommand();
CCommand() = default;
~CCommand();
EPureServerFileClass m_eFileClass;
+1 -5
View File
@@ -168,7 +168,7 @@ class CVoxelHash
{
public:
// Constructor, destructor
CVoxelHash();
CVoxelHash() = default;
~CVoxelHash();
// Call this to clear out the spatial partition and to re-initialize it given a particular world size (ISpatialPartitionInternal)
@@ -481,10 +481,6 @@ inline CVoxelTree *CSpatialPartition::VoxelTreeForHandle( SpatialPartitionHandle
//-----------------------------------------------------------------------------
// Constructor, destructor
//-----------------------------------------------------------------------------
CVoxelHash::CVoxelHash( )
{
}
CVoxelHash::~CVoxelHash()
{
Shutdown();