]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Initialize members in the constructor of SMESH_Mesh being a base of some descendant...
authoreap <eap@opencascade.com>
Thu, 16 Dec 2010 15:39:58 +0000 (15:39 +0000)
committereap <eap@opencascade.com>
Thu, 16 Dec 2010 15:39:58 +0000 (15:39 +0000)
src/SMESH/SMESH_Mesh.cxx
src/SMESH/SMESH_Mesh.hxx

index eb14cf6555b1d46e3999c1e1dbd353fa19a735e0..4692df5b3722361ba744e870d7695a170de576d7 100644 (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;
+}
+
 //=============================================================================
 /*!
  * 
index af28a56353342832b2dc23c0f81817c69b47de20..9750d88cf55753b2fd9a6988001f793256a98880 100644 (file)
@@ -332,7 +332,7 @@ protected:
   TRmGroupCallUp*            _rmGroupCallUp;
 
 protected:
-  SMESH_Mesh() {};
+  SMESH_Mesh();
   SMESH_Mesh(const SMESH_Mesh&) {};
 };