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:
@@ -1751,7 +1751,7 @@ class CMatRenderContextPtr : public CRefPtr<IMatRenderContext>
|
||||
{
|
||||
typedef CRefPtr<IMatRenderContext> BaseClass;
|
||||
public:
|
||||
CMatRenderContextPtr() {}
|
||||
CMatRenderContextPtr() = default;
|
||||
CMatRenderContextPtr( IMatRenderContext *pInit ) : BaseClass( pInit ) { if ( BaseClass::m_pObject ) BaseClass::m_pObject->BeginRender(); }
|
||||
CMatRenderContextPtr( IMaterialSystem *pFrom ) : BaseClass( pFrom->GetRenderContext() ) { if ( BaseClass::m_pObject ) BaseClass::m_pObject->BeginRender(); }
|
||||
~CMatRenderContextPtr() { if ( BaseClass::m_pObject ) BaseClass::m_pObject->EndRender(); }
|
||||
|
||||
@@ -222,17 +222,13 @@ inline void IncrementFloatPointer( float* &pBufferPointer, int vertexSize )
|
||||
class CPrimList
|
||||
{
|
||||
public:
|
||||
CPrimList();
|
||||
CPrimList() = default;
|
||||
CPrimList( int nFirstIndex, int nIndexCount );
|
||||
|
||||
int m_FirstIndex;
|
||||
int m_NumIndices;
|
||||
};
|
||||
|
||||
inline CPrimList::CPrimList()
|
||||
{
|
||||
}
|
||||
|
||||
inline CPrimList::CPrimList( int nFirstIndex, int nIndexCount )
|
||||
{
|
||||
m_FirstIndex = nFirstIndex;
|
||||
|
||||
Reference in New Issue
Block a user