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:
@@ -52,7 +52,7 @@ public:
|
||||
|
||||
struct AI_NearNode_t
|
||||
{
|
||||
AI_NearNode_t() {}
|
||||
AI_NearNode_t() = default;
|
||||
AI_NearNode_t( int index, float nodedist ) { dist = nodedist; nodeIndex = index; }
|
||||
float dist;
|
||||
int nodeIndex;
|
||||
|
||||
@@ -83,7 +83,7 @@ protected:
|
||||
CEventAction *m_ActionList;
|
||||
DECLARE_SIMPLE_DATADESC();
|
||||
|
||||
CBaseEntityOutput() {} // this class cannot be created, only it's children
|
||||
CBaseEntityOutput() = default; // this class cannot be created, only it's children
|
||||
|
||||
private:
|
||||
CBaseEntityOutput( CBaseEntityOutput& ); // protect from accidental copying
|
||||
|
||||
@@ -17,10 +17,6 @@ END_DATADESC();
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose:
|
||||
//-----------------------------------------------------------------------------
|
||||
CAI_HolsterBehavior::CAI_HolsterBehavior()
|
||||
{
|
||||
// m_AssaultCue = CUE_NO_ASSAULT;
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
@@ -25,8 +25,8 @@ class CAI_HolsterBehavior : public CAI_SimpleBehavior
|
||||
DECLARE_CLASS( CAI_HolsterBehavior, CAI_SimpleBehavior );
|
||||
|
||||
public:
|
||||
CAI_HolsterBehavior();
|
||||
|
||||
CAI_HolsterBehavior() = default;
|
||||
|
||||
virtual const char *GetName() { return "Holster"; }
|
||||
|
||||
virtual bool CanSelectSchedule();
|
||||
|
||||
@@ -461,14 +461,6 @@ void CNPC_MetroPolice::NotifyDeadFriend( CBaseEntity* pFriend )
|
||||
m_Sentences.Speak( "METROPOLICE_MAN_DOWN", SENTENCE_PRIORITY_MEDIUM );
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------------
|
||||
CNPC_MetroPolice::CNPC_MetroPolice()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose:
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
@@ -34,7 +34,7 @@ class CNPC_MetroPolice : public CAI_BaseActor
|
||||
DECLARE_DATADESC();
|
||||
|
||||
public:
|
||||
CNPC_MetroPolice();
|
||||
CNPC_MetroPolice() = default;
|
||||
|
||||
virtual bool CreateComponents();
|
||||
bool CreateBehaviors();
|
||||
|
||||
@@ -37,7 +37,7 @@ class CNPC_Monk : public CAI_PlayerAlly
|
||||
|
||||
public:
|
||||
|
||||
CNPC_Monk() {}
|
||||
CNPC_Monk() = default;
|
||||
void Spawn();
|
||||
void Precache();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user