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:
@@ -325,7 +325,7 @@ template< class DummyType >
|
||||
class CIntHandle16 : public CBaseIntHandle< unsigned short >
|
||||
{
|
||||
public:
|
||||
inline CIntHandle16() {}
|
||||
inline CIntHandle16() = default;
|
||||
|
||||
static inline CIntHandle16<DummyType> MakeHandle( HANDLE_TYPE val )
|
||||
{
|
||||
@@ -344,7 +344,7 @@ template< class DummyType >
|
||||
class CIntHandle32 : public CBaseIntHandle< unsigned long >
|
||||
{
|
||||
public:
|
||||
inline CIntHandle32() {}
|
||||
inline CIntHandle32() = default;
|
||||
|
||||
static inline CIntHandle32<DummyType> MakeHandle( HANDLE_TYPE val )
|
||||
{
|
||||
|
||||
@@ -118,7 +118,7 @@ template < class FunctionType >
|
||||
class CDynamicFunctionMustInit : public CDynamicFunction < FunctionType >
|
||||
{
|
||||
private: // forbid default constructor.
|
||||
CDynamicFunctionMustInit() {}
|
||||
CDynamicFunctionMustInit() = default;
|
||||
|
||||
public:
|
||||
CDynamicFunctionMustInit(const char *libname, const char *fn, FunctionType fallback=NULL)
|
||||
|
||||
@@ -494,7 +494,7 @@ inline CAverageTimeMarker::~CAverageTimeMarker()
|
||||
class CLimitTimer
|
||||
{
|
||||
public:
|
||||
CLimitTimer() {}
|
||||
CLimitTimer() = default;
|
||||
CLimitTimer( uint64 cMicroSecDuration ) { SetLimit( cMicroSecDuration ); }
|
||||
void SetLimit( uint64 m_cMicroSecDuration );
|
||||
bool BLimitReached() const;
|
||||
|
||||
@@ -609,7 +609,7 @@ private:
|
||||
class CThreadLocalPtr : private CThreadLocalBase
|
||||
{
|
||||
public:
|
||||
CThreadLocalPtr() {}
|
||||
CThreadLocalPtr() = default;
|
||||
|
||||
operator const void *() const { return (const T *)Get(); }
|
||||
operator void *() { return (T *)Get(); }
|
||||
|
||||
@@ -433,7 +433,7 @@ class TSLIST_HEAD_ALIGN CTSList : public CTSListBase
|
||||
public:
|
||||
struct TSLIST_NODE_ALIGN Node_t : public TSLNodeBase_t
|
||||
{
|
||||
Node_t() {}
|
||||
Node_t() = default;
|
||||
Node_t( const T &init ) : elem( init ) {}
|
||||
T elem;
|
||||
|
||||
@@ -524,7 +524,7 @@ class TSLIST_HEAD_ALIGN CTSListWithFreeList : public CTSListBase
|
||||
public:
|
||||
struct TSLIST_NODE_ALIGN Node_t : public TSLNodeBase_t
|
||||
{
|
||||
Node_t() {}
|
||||
Node_t() = default;
|
||||
Node_t( const T &init ) : elem( init ) {}
|
||||
|
||||
T elem;
|
||||
@@ -692,7 +692,7 @@ public:
|
||||
MemAlloc_FreeAligned( p );
|
||||
}
|
||||
|
||||
Node_t() {}
|
||||
Node_t() = default;
|
||||
Node_t( const T &init ) : elem( init ) {}
|
||||
|
||||
Node_t *pNext;
|
||||
|
||||
Reference in New Issue
Block a user