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 )
|
void S3D::INIT_SMATERIAL( SMATERIAL& aMaterial )
|
||||||
{
|
{
|
||||||
memset( &aMaterial, 0, sizeof( aMaterial ) );
|
aMaterial = {};
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void S3D::INIT_SMESH( SMESH& aMesh )
|
void S3D::INIT_SMESH( SMESH& aMesh )
|
||||||
{
|
{
|
||||||
memset( &aMesh, 0, sizeof( aMesh ) );
|
aMesh = {};
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void S3D::INIT_S3DMODEL( S3DMODEL& aModel )
|
void S3D::INIT_S3DMODEL( S3DMODEL& aModel )
|
||||||
{
|
{
|
||||||
memset( &aModel, 0, sizeof( aModel ) );
|
aModel = {};
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue