From: eap Date: Thu, 16 Dec 2010 07:30:23 +0000 (+0000) Subject: Initialize members in the constructor of SMESH_Mesh being a base of some descendant... X-Git-Tag: V6_2_0a2~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4830d553eb4130a552590656cbec5b5d3ed0d1ab;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 a85e23e23..7a0b5130e 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 c88bbd02d..df5b281fb 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&) {}; };