3d-viewer: Clear memset warnings
C++11 can clear by empty copy-constructor
This commit is contained in:
parent
906161dcf8
commit
6f5a7b3ab7
|
@ -358,22 +358,19 @@ bool S3D::GetMatIndex( MATLIST& aList, SGNODE* aNode, int& aIndex )
|
|||
|
||||
void S3D::INIT_SMATERIAL( SMATERIAL& aMaterial )
|
||||
{
|
||||
memset( &aMaterial, 0, sizeof( aMaterial ) );
|
||||
return;
|
||||
aMaterial = {};
|
||||
}
|
||||
|
||||
|
||||
void S3D::INIT_SMESH( SMESH& aMesh )
|
||||
{
|
||||
memset( &aMesh, 0, sizeof( aMesh ) );
|
||||
return;
|
||||
aMesh = {};
|
||||
}
|
||||
|
||||
|
||||
void S3D::INIT_S3DMODEL( S3DMODEL& aModel )
|
||||
{
|
||||
memset( &aModel, 0, sizeof( aModel ) );
|
||||
return;
|
||||
aModel = {};
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue