From fe8da0148d1f428180380a71b4cc2e25a63b998b Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 2 Sep 2010 06:26:55 +0000 Subject: [PATCH] improve comment --- src/SMESH/SMESH_Gen.cxx | 2 +- src/SMESH/SMESH_Mesh.cxx | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/SMESH/SMESH_Gen.cxx b/src/SMESH/SMESH_Gen.cxx index f2c7f2eef..47947add9 100644 --- a/src/SMESH/SMESH_Gen.cxx +++ b/src/SMESH/SMESH_Gen.cxx @@ -191,7 +191,7 @@ bool SMESH_Gen::Compute(SMESH_Mesh & aMesh, } // ------------------------------------------------------------ - // sort list of meshes according to mesh order + // sort list of submeshes according to mesh order // ------------------------------------------------------------ aMesh.SortByMeshOrder( smWithAlgoSupportingSubmeshes ); diff --git a/src/SMESH/SMESH_Mesh.cxx b/src/SMESH/SMESH_Mesh.cxx index 5cf9ba6c5..b37c0e646 100644 --- a/src/SMESH/SMESH_Mesh.cxx +++ b/src/SMESH/SMESH_Mesh.cxx @@ -457,6 +457,9 @@ SMESH_Hypothesis::Hypothesis_Status // NotConformAllowed can be only global if ( !isGlobalHyp ) { + // NOTE: this is not a correct way to check a name of hypothesis, + // there should be an attribute of hypothesis saying that it can/can't + // be global/local string hypName = anHyp->GetName(); if ( hypName == "NotConformAllowed" ) { @@ -499,7 +502,7 @@ SMESH_Hypothesis::Hypothesis_Status } } } - HasModificationsToDiscard(); // to reset _isModified flag if mesh become empty + HasModificationsToDiscard(); // to reset _isModified flag if a mesh becomes empty if(MYDEBUG) subMesh->DumpAlgoState(true); if(MYDEBUG) SCRUTE(ret); -- 2.39.2