]> 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 07:30:23 +0000 (07:30 +0000)
committereap <eap@opencascade.com>
Thu, 16 Dec 2010 07:30:23 +0000 (07:30 +0000)
src/SMESH/SMESH_Mesh.cxx
src/SMESH/SMESH_Mesh.hxx

index a85e23e23d5e9b024ca354ae777d0c117207aa22..7a0b5130eecfb485775dca7d1deb7ef06d2671c4 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 c88bbd02dee23a2066f6df93a5f3c08c8417a493..df5b281fb344e49c5f490a205c57661893784dbd 100644 (file)
@@ -332,7 +332,7 @@ protected:
   TRmGroupCallUp*            _rmGroupCallUp;
 
 protected:
-  SMESH_Mesh() {};
+  SMESH_Mesh();
   SMESH_Mesh(const SMESH_Mesh&) {};
 };