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:
@@ -33,10 +33,6 @@ void VerifySequenceIndex( CStudioHdr *pstudiohdr );
|
||||
|
||||
extern ISoundEmitterSystemBase *soundemitterbase;
|
||||
|
||||
CModelSoundsCache::CModelSoundsCache()
|
||||
{
|
||||
}
|
||||
|
||||
CModelSoundsCache::CModelSoundsCache( const CModelSoundsCache& src )
|
||||
{
|
||||
sounds = src.sounds;
|
||||
@@ -214,4 +210,4 @@ void CModelSoundsCache::BuildAnimationEventSoundList( CStudioHdr *hdr, CUtlVecto
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ class CModelSoundsCache : public IBaseCacheInfo
|
||||
public:
|
||||
CUtlVector< unsigned short > sounds;
|
||||
|
||||
CModelSoundsCache();
|
||||
CModelSoundsCache() = default;
|
||||
CModelSoundsCache( const CModelSoundsCache& src );
|
||||
|
||||
void PrecacheSoundList();
|
||||
|
||||
@@ -44,9 +44,7 @@ class CActivityRemapCache
|
||||
{
|
||||
public:
|
||||
|
||||
CActivityRemapCache()
|
||||
{
|
||||
}
|
||||
CActivityRemapCache() = default;
|
||||
|
||||
CActivityRemapCache( const CActivityRemapCache& src )
|
||||
{
|
||||
|
||||
@@ -51,10 +51,6 @@ ConVar cl_thirdperson( "cl_thirdperson", "0", FCVAR_NOT_CONNECTED | FCVAR_USERIN
|
||||
|
||||
#endif
|
||||
|
||||
CThirdPersonManager::CThirdPersonManager( void )
|
||||
{
|
||||
}
|
||||
|
||||
void CThirdPersonManager::Init( void )
|
||||
{
|
||||
m_bOverrideThirdPerson = false;
|
||||
@@ -227,4 +223,4 @@ bool CThirdPersonManager::WantToUseGameThirdPerson( void )
|
||||
}
|
||||
|
||||
|
||||
CThirdPersonManager g_ThirdPersonManager;
|
||||
CThirdPersonManager g_ThirdPersonManager;
|
||||
|
||||
@@ -41,7 +41,7 @@ class CThirdPersonManager
|
||||
{
|
||||
public:
|
||||
|
||||
CThirdPersonManager();
|
||||
CThirdPersonManager() = default;
|
||||
void SetCameraOffsetAngles( Vector vecOffset ) { m_vecCameraOffset = vecOffset; }
|
||||
Vector GetCameraOffsetAngles( void ) { return m_vecCameraOffset; }
|
||||
|
||||
|
||||
@@ -62,9 +62,7 @@ private:
|
||||
|
||||
struct DecalEntry
|
||||
{
|
||||
DecalEntry()
|
||||
{
|
||||
}
|
||||
DecalEntry() = default;
|
||||
|
||||
DecalEntry( const DecalEntry& src )
|
||||
{
|
||||
|
||||
@@ -44,7 +44,7 @@ class CHandle : public CBaseHandle
|
||||
{
|
||||
public:
|
||||
|
||||
CHandle();
|
||||
CHandle() = default;
|
||||
CHandle( int iEntry, int iSerialNumber );
|
||||
CHandle( const CBaseHandle &handle );
|
||||
CHandle( T *pVal );
|
||||
@@ -71,12 +71,6 @@ public:
|
||||
// Inlines.
|
||||
// ----------------------------------------------------------------------- //
|
||||
|
||||
template<class T>
|
||||
CHandle<T>::CHandle()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
template<class T>
|
||||
CHandle<T>::CHandle( int iEntry, int iSerialNumber )
|
||||
{
|
||||
|
||||
@@ -20,9 +20,7 @@ template <class BITSTRING>
|
||||
class CVarBitVecSaveRestoreOps : public CDefSaveRestoreOps
|
||||
{
|
||||
public:
|
||||
CVarBitVecSaveRestoreOps()
|
||||
{
|
||||
}
|
||||
CVarBitVecSaveRestoreOps() = default;
|
||||
|
||||
// save data type interface
|
||||
virtual void Save( const SaveRestoreFieldInfo_t &fieldInfo, ISave *pSave )
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
class CViewVectors
|
||||
{
|
||||
public:
|
||||
CViewVectors() {}
|
||||
CViewVectors() = default;
|
||||
|
||||
CViewVectors(
|
||||
Vector vView,
|
||||
|
||||
Reference in New Issue
Block a user