From: eap Date: Thu, 16 Dec 2010 15:39:58 +0000 (+0000) Subject: Initialize members in the constructor of SMESH_Mesh being a base of some descendant... X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=472e83588193bc82d433132546e6e78636d5d66b;p=modules%2Fsmesh.git Initialize members in the constructor of SMESH_Mesh being a base of some descendant class --- diff --git a/src/SMESH/SMESH_Mesh.cxx b/src/SMESH/SMESH_Mesh.cxx index eb14cf655..4692df5b3 100644 --- a/src/SMESH/SMESH_Mesh.cxx +++ b/src/SMESH/SMESH_Mesh.cxx @@ -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; +} + //============================================================================= /*! * diff --git a/src/SMESH/SMESH_Mesh.hxx b/src/SMESH/SMESH_Mesh.hxx index af28a5635..9750d88cf 100644 --- a/src/SMESH/SMESH_Mesh.hxx +++ b/src/SMESH/SMESH_Mesh.hxx @@ -332,7 +332,7 @@ protected: TRmGroupCallUp* _rmGroupCallUp; protected: - SMESH_Mesh() {}; + SMESH_Mesh(); SMESH_Mesh(const SMESH_Mesh&) {}; };