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:
@@ -637,10 +637,6 @@ void CDemoRecorder::StartupDemoFile( void )
|
||||
g_ClientDLL->OnDemoRecordStart( m_szDemoBaseName );
|
||||
}
|
||||
|
||||
CDemoRecorder::CDemoRecorder()
|
||||
{
|
||||
}
|
||||
|
||||
CDemoRecorder::~CDemoRecorder()
|
||||
{
|
||||
CloseDemoFile();
|
||||
|
||||
+1
-1
@@ -123,7 +123,7 @@ class CDemoRecorder : public IDemoRecorder
|
||||
{
|
||||
public:
|
||||
~CDemoRecorder();
|
||||
CDemoRecorder();
|
||||
CDemoRecorder() = default;
|
||||
|
||||
CDemoFile *GetDemoFile( void );
|
||||
int GetRecordingTick( void );
|
||||
|
||||
+1
-3
@@ -56,9 +56,7 @@ CTSPool<TraceInfo_t> g_TraceInfoPool;
|
||||
class CTraceInfoPool : public CTSList<TraceInfo_t *>
|
||||
{
|
||||
public:
|
||||
CTraceInfoPool()
|
||||
{
|
||||
}
|
||||
CTraceInfoPool() = default;
|
||||
};
|
||||
|
||||
CTraceInfoPool g_TraceInfoPool;
|
||||
|
||||
@@ -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
@@ -47,7 +47,7 @@ public:
|
||||
//
|
||||
// Construction/Decontruction
|
||||
//
|
||||
CDispNode() {};
|
||||
CDispNode() = default;
|
||||
~CDispNode() {};
|
||||
|
||||
//=========================================================================
|
||||
|
||||
@@ -29,12 +29,6 @@ CClientSendProp::~CClientSendProp()
|
||||
delete [] m_pTableName;
|
||||
}
|
||||
|
||||
|
||||
CClientSendTable::CClientSendTable()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
CClientSendTable::~CClientSendTable()
|
||||
{
|
||||
delete [] m_SendTable.m_pNetTableName;
|
||||
|
||||
@@ -50,7 +50,7 @@ private:
|
||||
class CClientSendTable
|
||||
{
|
||||
public:
|
||||
CClientSendTable();
|
||||
CClientSendTable() = default;
|
||||
~CClientSendTable();
|
||||
|
||||
int GetNumProps() const { return m_SendTable.m_nProps; }
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
@@ -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 );
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
}
|
||||
|
||||
@@ -69,7 +69,7 @@ private:
|
||||
class CCommand
|
||||
{
|
||||
public:
|
||||
CCommand();
|
||||
CCommand() = default;
|
||||
~CCommand();
|
||||
|
||||
EPureServerFileClass m_eFileClass;
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user