3d-viewer: Clear memset warnings

C++11 can clear by empty copy-constructor
This commit is contained in:
Seth Hillbrand 2019-01-09 06:46:41 -08:00
parent 906161dcf8
commit 6f5a7b3ab7
1 changed files with 3 additions and 6 deletions

View File

@ -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 = {};
}