mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0024177: Eliminate CLang compiler warning -Wlogical-op-parentheses (&& within ||)
Some fixes to eliminate warning
This commit is contained in:
@@ -1350,8 +1350,8 @@ static Standard_Boolean NewPlane(const TopoDS_Face& F,
|
||||
if (!Modify) {
|
||||
Newpl = Plorig;
|
||||
NormalF = Newpl.Axis();
|
||||
if (Newpl.Direct() && F.Orientation() == TopAbs_REVERSED ||
|
||||
!Newpl.Direct() && F.Orientation() == TopAbs_FORWARD) {
|
||||
if ((Newpl.Direct() && F.Orientation() == TopAbs_REVERSED) ||
|
||||
(!Newpl.Direct() && F.Orientation() == TopAbs_FORWARD)) {
|
||||
NormalF.Reverse();
|
||||
}
|
||||
return Standard_True;
|
||||
|
Reference in New Issue
Block a user