mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-21 10:13:43 +03:00
0023349: There are identical sub-expressions 'aS1.ShapeType() != TopAbs_FACE' to the left and to the right of the '||' operator.
The same shape was checked twice if it was a face. The other shape was omitted instead.
This commit is contained in:
parent
8fb480b35a
commit
b2d4add4b8
@ -1508,7 +1508,7 @@ Standard_Integer bopsinf (Draw_Interpretor& di,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (aS1.ShapeType()!=TopAbs_FACE ||
|
if (aS1.ShapeType()!=TopAbs_FACE ||
|
||||||
aS1.ShapeType()!=TopAbs_FACE ) {
|
aS2.ShapeType()!=TopAbs_FACE ) {
|
||||||
//printf(" Shapes #%d #%d are not faces\n", nF1, nF2 );
|
//printf(" Shapes #%d #%d are not faces\n", nF1, nF2 );
|
||||||
di << " Shapes #" << nF1 << " #" << nF2 << " are not faces\n";
|
di << " Shapes #" << nF1 << " #" << nF2 << " are not faces\n";
|
||||||
return 0;
|
return 0;
|
||||||
@ -1570,7 +1570,7 @@ Standard_Integer bopsonf (Draw_Interpretor& di,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (aS1.ShapeType()!=TopAbs_FACE ||
|
if (aS1.ShapeType()!=TopAbs_FACE ||
|
||||||
aS1.ShapeType()!=TopAbs_FACE ) {
|
aS2.ShapeType()!=TopAbs_FACE ) {
|
||||||
//printf(" Shapes #%d #%d are not faces\n", nF1, nF2 );
|
//printf(" Shapes #%d #%d are not faces\n", nF1, nF2 );
|
||||||
di << " Shapes #" << nF1 << " #" << nF2 << " are not faces\n";
|
di << " Shapes #" << nF1 << " #" << nF2 << " are not faces\n";
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user