Initialize members in the constructor of SMESH_Mesh being a base of some descendant class

This commit is contained in:
eap 2010-12-16 07:30:23 +00:00
parent 8e3111f237
commit 4830d553eb
2 changed files with 18 additions and 1 deletions

View File

@ -105,6 +105,23 @@ SMESH_Mesh::SMESH_Mesh(int theLocalId,
_myMeshDS->ShapeToMesh( PseudoShape() );
}
//================================================================================
/*!
* \brief Constructor of SMESH_Mesh being a base of some descendant class
*/
//================================================================================
SMESH_Mesh::SMESH_Mesh():
_groupId( 0 ), _nbSubShapes( 0 )
{
_myMeshDS = 0;
_isShapeToMesh = false;
_isAutoColor = false;
_isModified = false;
_shapeDiagonal = 0.0;
_rmGroupCallUp = 0;
}
//=============================================================================
/*!
*

View File

@ -332,7 +332,7 @@ protected:
TRmGroupCallUp* _rmGroupCallUp;
protected:
SMESH_Mesh() {};
SMESH_Mesh();
SMESH_Mesh(const SMESH_Mesh&) {};
};