Replace empty constructors with default constructors #88

This commit is contained in:
nillerusr
2022-11-05 14:23:05 +03:00
parent ba90de20d9
commit 8fbc002a37
97 changed files with 192 additions and 2620 deletions
+1 -1
View File
@@ -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(); }
+1 -5
View File
@@ -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;