mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-08 01:39:36 +00:00
Replace empty constructors with default constructors #88
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
public: \
|
||||
DECLARE_PREDICTABLE(); \
|
||||
DECLARE_CLIENTCLASS(); \
|
||||
C_##className() {}; \
|
||||
C_##className() = default; \
|
||||
private: \
|
||||
C_##className( const C_##className & ); \
|
||||
}; \
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -273,7 +273,7 @@ private:
|
||||
template<typename Type>
|
||||
struct CInterpolatedVarEntryBase<Type, false>
|
||||
{
|
||||
CInterpolatedVarEntryBase() {}
|
||||
CInterpolatedVarEntryBase() = default;
|
||||
~CInterpolatedVarEntryBase() {}
|
||||
|
||||
const Type *GetValue() const { return &value; }
|
||||
|
||||
@@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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];
|
||||
|
||||
@@ -715,9 +715,7 @@ class CViewEffectsSaveRestoreBlockHandler : public CDefSaveRestoreBlockHandler
|
||||
{
|
||||
struct QueuedItem_t;
|
||||
public:
|
||||
CViewEffectsSaveRestoreBlockHandler()
|
||||
{
|
||||
}
|
||||
CViewEffectsSaveRestoreBlockHandler() = default;
|
||||
|
||||
const char *GetBlockName()
|
||||
{
|
||||
|
||||
@@ -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 ) )
|
||||
|
||||
Reference in New Issue
Block a user