1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +03:00

0024818: CLang warnings -Wlogical-not-parentheses

CLang warnings -Wlogical-not-parentheses were fixed.
This commit is contained in:
ski
2014-04-16 15:59:21 +04:00
committed by abv
parent 26fd0d96ea
commit c29a9290af
11 changed files with 17 additions and 17 deletions

View File

@@ -115,15 +115,15 @@ Standard_Boolean MAT_Arc::HasNeighbour(const Handle(MAT_Node)& aNode,
{
if (aSide == MAT_Left) {
// if (aNode == FirstNode()) return (!firstArcLeft == NULL);
if (aNode == FirstNode()) return (!firstArcLeft == 0);
if (aNode == FirstNode()) return (firstArcLeft != 0);
// if (aNode == SecondNode()) return (!secondArcLeft == NULL);
if (aNode == SecondNode()) return (!secondArcLeft == 0);
if (aNode == SecondNode()) return (secondArcLeft != 0);
}
else {
// if (aNode == FirstNode()) return (!firstArcRight == NULL);
if (aNode == FirstNode()) return (!firstArcRight == 0);
if (aNode == FirstNode()) return (firstArcRight != 0);
// if (aNode == SecondNode()) return (!secondArcRight == NULL);
if (aNode == SecondNode()) return (!secondArcRight == 0);
if (aNode == SecondNode()) return (secondArcRight != 0);
}
Standard_DomainError::Raise("MAT_Arc::HasNeighbour");
return Standard_False;