mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-08 14:17:06 +03:00
0023132: Suspicious code snippets
1) Warning in Aspect.cxx couldn't be reproduced 2) Description of changes: added 'return' statements into ReadStep(...) functions of RWStepBasic_* classes. 3) BRepFill_OffsetWire.cxx - removed dead code; 4) IFSelect_WorkSession.cxx - swapped arguments; 5) TopOpeBRep_ShapeIntersector2d.cxx - removed 'brake' statement and changed loop to if-statement because of void TopOpeBRep_ShapeIntersector2d::FindFFIntersection() function's call features. 6) V2d_RectangularGraphicGrid.cxx - left constants instead of functions beacuse of faster perfomance. 7) Commented unreachable code in files GeomFill_LocationGuide.cxx and TopOpeBRepTool_mkTondgE.cxx
This commit is contained in:
@@ -258,7 +258,7 @@ void TopOpeBRep_ShapeIntersector2d::FindFFIntersection()
|
||||
myFFDone = Standard_False;
|
||||
// myFFSameDomain = Standard_False;
|
||||
|
||||
while ( MoreFFCouple() ) {
|
||||
if ( MoreFFCouple() ) {
|
||||
|
||||
// The two candidate intersecting GeomShapes GS1,GS2 and their types t1,t2
|
||||
const TopoDS_Shape& GS1 = myFaceScanner.Current();
|
||||
@@ -277,8 +277,6 @@ void TopOpeBRep_ShapeIntersector2d::FindFFIntersection()
|
||||
BS.Box(GS1);
|
||||
BS.Box(GS2);
|
||||
myFFDone = Standard_True;
|
||||
break;
|
||||
NextFFCouple();
|
||||
}
|
||||
|
||||
SetIntersectionDone();
|
||||
|
Reference in New Issue
Block a user