FEM: myStudyId not needed when SMESH >= 9
Put guards not just around its use, but also its creation.
This commit is contained in:
committed by
Benjamin Nauck
parent
575bfa032a
commit
6c8cd994d3
@@ -88,7 +88,9 @@ TYPESYSTEM_SOURCE(Fem::FemMesh, Base::Persistence)
|
||||
|
||||
FemMesh::FemMesh()
|
||||
: myMesh(nullptr)
|
||||
#if SMESH_VERSION_MAJOR < 9
|
||||
, myStudyId(0)
|
||||
#endif
|
||||
{
|
||||
#if SMESH_VERSION_MAJOR >= 9
|
||||
myMesh = getGenerator()->CreateMesh(false);
|
||||
@@ -99,7 +101,9 @@ FemMesh::FemMesh()
|
||||
|
||||
FemMesh::FemMesh(const FemMesh& mesh)
|
||||
: myMesh(nullptr)
|
||||
#if SMESH_VERSION_MAJOR < 9
|
||||
, myStudyId(0)
|
||||
#endif
|
||||
{
|
||||
#if SMESH_VERSION_MAJOR >= 9
|
||||
myMesh = getGenerator()->CreateMesh(false);
|
||||
|
||||
Reference in New Issue
Block a user