mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-25 09:07:26 +08: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:
@@ -2822,7 +2822,7 @@ void IFSelect_WorkSession::QueryCheckList (const Interface_CheckIterator& chl)
|
||||
{
|
||||
if (!IsLoaded()) return;
|
||||
Standard_Integer i,nb = themodel->NbEntities();
|
||||
thecheckana = TCollection_AsciiString (' ',nb+1);
|
||||
thecheckana = TCollection_AsciiString (nb+1,' ');
|
||||
for (chl.Start(); chl.More(); chl.Next()) {
|
||||
Standard_Integer num = chl.Number();
|
||||
const Handle(Interface_Check) ach = chl.Value();
|
||||
|
||||
Reference in New Issue
Block a user