salomesmesh: fix broken conditions
Warnings was: src/3rdParty/salomesmesh/src/SMESH/SMESH_Mesh.cpp|617 col 19| warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses] || bool isAlgo = ( !anHyp->GetType() == SMESHDS_Hypothesis::PARAM_ALGO ); || ^ ~~ src/3rdParty/salomesmesh/src/Controls/SMESH_Controls.cpp|2165 col 31| warning: '&&' within '||' [-Wlogical-op-parentheses] || if ( !aMinStr.IsEmpty() && !aMinStr.IsIntegerValue() ||
This commit is contained in:
committed by
wmayer
parent
09c7179389
commit
75ce52f6b8
@@ -3291,4 +3291,4 @@ std::vector<gp_XYZ>::reference TSequenceOfXYZ::operator()(size_type n)
|
||||
std::vector<gp_XYZ>::const_reference TSequenceOfXYZ::operator()(size_type n) const
|
||||
{
|
||||
return std::vector<gp_XYZ>::operator[](n-1);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -527,7 +527,7 @@ SMESH_Hypothesis::Hypothesis_Status
|
||||
|
||||
// shape
|
||||
|
||||
bool isAlgo = ( !anHyp->GetType() == SMESHDS_Hypothesis::PARAM_ALGO );
|
||||
bool isAlgo = ( anHyp->GetType() != SMESHDS_Hypothesis::PARAM_ALGO );
|
||||
int event = isAlgo ? SMESH_subMesh::ADD_ALGO : SMESH_subMesh::ADD_HYP;
|
||||
|
||||
SMESH_Hypothesis::Hypothesis_Status ret = subMesh->AlgoStateEngine(event, anHyp);
|
||||
@@ -614,7 +614,7 @@ SMESH_Hypothesis::Hypothesis_Status
|
||||
|
||||
// shape
|
||||
|
||||
bool isAlgo = ( !anHyp->GetType() == SMESHDS_Hypothesis::PARAM_ALGO );
|
||||
bool isAlgo = ( anHyp->GetType() != SMESHDS_Hypothesis::PARAM_ALGO );
|
||||
int event = isAlgo ? SMESH_subMesh::REMOVE_ALGO : SMESH_subMesh::REMOVE_HYP;
|
||||
|
||||
SMESH_Hypothesis::Hypothesis_Status ret = subMesh->AlgoStateEngine(event, anHyp);
|
||||
|
||||
Reference in New Issue
Block a user