From dad744364c27f488c40d4357699ac6cd9d779330 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 13 Jul 2022 19:40:43 +0300 Subject: [PATCH] bos #30222 EDF 25368 - warning when computing --- src/SMESH/SMESH_Mesh.cxx | 6 +++--- src/SMESH/SMESH_subMesh.cxx | 6 +++--- src/SMESH/SMESH_subMesh.hxx | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/SMESH/SMESH_Mesh.cxx b/src/SMESH/SMESH_Mesh.cxx index c819ce097..8d0d9392b 100644 --- a/src/SMESH/SMESH_Mesh.cxx +++ b/src/SMESH/SMESH_Mesh.cxx @@ -705,7 +705,7 @@ SMESH_Mesh::AddHypothesis(const TopoDS_Shape & aSubShape, while ( smIt->more() ) { SMESH_subMesh* sm = smIt->next(); if ( sm->IsApplicableHypothesis( anHyp )) { - ret2 = sm->CheckConcurrentHypothesis( anHyp->GetType() ); + ret2 = sm->CheckConcurrentHypothesis( anHyp ); if (ret2 > ret) { ret = ret2; break; @@ -753,7 +753,7 @@ SMESH_Mesh::RemoveHypothesis(const TopoDS_Shape & aSubShape, // there may appear concurrent hyps that were covered by the removed hyp if (ret < SMESH_Hypothesis::HYP_CONCURRENT && subMesh->IsApplicableHypothesis( anHyp ) && - subMesh->CheckConcurrentHypothesis( anHyp->GetType() ) != SMESH_Hypothesis::HYP_OK) + subMesh->CheckConcurrentHypothesis( anHyp ) != SMESH_Hypothesis::HYP_OK) ret = SMESH_Hypothesis::HYP_CONCURRENT; // sub-shapes @@ -774,7 +774,7 @@ SMESH_Mesh::RemoveHypothesis(const TopoDS_Shape & aSubShape, while ( smIt->more() ) { SMESH_subMesh* sm = smIt->next(); if ( sm->IsApplicableHypothesis( anHyp )) { - ret2 = sm->CheckConcurrentHypothesis( anHyp->GetType() ); + ret2 = sm->CheckConcurrentHypothesis( anHyp ); if (ret2 > ret) { ret = ret2; break; diff --git a/src/SMESH/SMESH_subMesh.cxx b/src/SMESH/SMESH_subMesh.cxx index ecfa286c1..0b697d7a0 100644 --- a/src/SMESH/SMESH_subMesh.cxx +++ b/src/SMESH/SMESH_subMesh.cxx @@ -2247,10 +2247,10 @@ const SMESH_Hypothesis* SMESH_subMesh::getSimilarAttached(const TopoDS_Shape& //======================================================================= SMESH_Hypothesis::Hypothesis_Status - SMESH_subMesh::CheckConcurrentHypothesis (const int theHypType) + SMESH_subMesh::CheckConcurrentHypothesis( SMESH_Hypothesis* theHypothesis) { // is there local hypothesis on me? - if ( getSimilarAttached( _subShape, 0, theHypType ) ) + if ( getSimilarAttached( _subShape, theHypothesis ) ) return SMESH_Hypothesis::HYP_OK; @@ -2260,7 +2260,7 @@ SMESH_Hypothesis::Hypothesis_Status for (; it.More(); it.Next()) { const TopoDS_Shape& ancestor = it.Value(); - const SMESH_Hypothesis* hyp = getSimilarAttached( ancestor, 0, theHypType ); + const SMESH_Hypothesis* hyp = getSimilarAttached( ancestor, theHypothesis ); if ( hyp ) { if ( aPrevWithHyp.IsNull() || aPrevWithHyp.IsSame( ancestor )) diff --git a/src/SMESH/SMESH_subMesh.hxx b/src/SMESH/SMESH_subMesh.hxx index fdfe15257..fbfd222c2 100644 --- a/src/SMESH/SMESH_subMesh.hxx +++ b/src/SMESH/SMESH_subMesh.hxx @@ -246,7 +246,7 @@ public: // return true if theHypothesis can be used to mesh me: // its shape type is checked - SMESH_Hypothesis::Hypothesis_Status CheckConcurrentHypothesis (const int theHypType); + SMESH_Hypothesis::Hypothesis_Status CheckConcurrentHypothesis (SMESH_Hypothesis* theHypothesis); // check if there are several applicable hypothesis on fathers /*! -- 2.30.2