mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0033375: Coding - Static Analyzing processing. Performance
Performance update applied: - moving to const reference as much as possible Result of CLANG_TIDY (static analyzing filter: perform*)
This commit is contained in:
@@ -1300,7 +1300,7 @@ void BRepTools::DetectClosedness(const TopoDS_Face& theFace,
|
||||
|
||||
Standard_Real BRepTools::EvalAndUpdateTol(const TopoDS_Edge& theE,
|
||||
const Handle(Geom_Curve)& C3d,
|
||||
const Handle(Geom2d_Curve) C2d,
|
||||
const Handle(Geom2d_Curve)& C2d,
|
||||
const Handle(Geom_Surface)& S,
|
||||
const Standard_Real f,
|
||||
const Standard_Real l)
|
||||
|
@@ -330,7 +330,7 @@ public:
|
||||
//! Method returns actual tolerance of edge
|
||||
Standard_EXPORT static Standard_Real EvalAndUpdateTol(const TopoDS_Edge& theE,
|
||||
const Handle(Geom_Curve)& theC3d,
|
||||
const Handle(Geom2d_Curve) theC2d,
|
||||
const Handle(Geom2d_Curve)& theC2d,
|
||||
const Handle(Geom_Surface)& theS,
|
||||
const Standard_Real theF,
|
||||
const Standard_Real theL);
|
||||
|
@@ -462,7 +462,7 @@ TopoDS_Shape BRepTools_Quilt::Shells() const
|
||||
// itm.More(); ) {
|
||||
if(!M.IsBound(aexp.Current()))
|
||||
continue;
|
||||
TopoDS_Shape ae = aexp.Current();
|
||||
const TopoDS_Shape& ae = aexp.Current();
|
||||
TopoDS_Shape as = M.Find(ae);
|
||||
if (as.IsSame(oldShell)) {
|
||||
// update the orientation of free edges in SH.
|
||||
|
@@ -388,7 +388,7 @@ TopoDS_Shape BRepTools_ReShape::Apply (const TopoDS_Shape& shape,
|
||||
// apply recorded modifications to subshapes
|
||||
Standard_Boolean isEmpty = Standard_True;
|
||||
for ( TopoDS_Iterator it(shape,Standard_False); it.More(); it.Next() ) {
|
||||
TopoDS_Shape sh = it.Value();
|
||||
const TopoDS_Shape& sh = it.Value();
|
||||
newsh = Apply ( sh, until );
|
||||
if ( newsh != sh ) {
|
||||
if ( myStatus & EncodeStatus(4)) //ShapeExtend::DecodeStatus ( myStatus, ShapeExtend_DONE4 ) )
|
||||
@@ -408,7 +408,7 @@ TopoDS_Shape BRepTools_ReShape::Apply (const TopoDS_Shape& shape,
|
||||
}
|
||||
Standard_Integer nitems = 0;
|
||||
for ( TopoDS_Iterator subit(newsh); subit.More(); subit.Next(), nitems++ ) {
|
||||
TopoDS_Shape subsh = subit.Value();
|
||||
const TopoDS_Shape& subsh = subit.Value();
|
||||
if ( subsh.ShapeType() == sh.ShapeType() ) B.Add ( result, subsh );//fix for SAMTECH bug OCC322 about abcense internal vertices after sewing.
|
||||
else locStatus |= EncodeStatus(10);//ShapeExtend::EncodeStatus ( ShapeExtend_FAIL1 );
|
||||
}
|
||||
|
Reference in New Issue
Block a user