mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +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:
@@ -736,7 +736,7 @@ Standard_Boolean IntTools_Context::IsValidBlockForFace
|
||||
|
||||
aTInterm=IntTools_Tools::IntermediatePoint(aT1, aT2);
|
||||
|
||||
Handle(Geom_Curve) aC3D=aC.Curve();
|
||||
const Handle(Geom_Curve)& aC3D=aC.Curve();
|
||||
// point 3D
|
||||
aC3D->D0(aTInterm, aPInterm);
|
||||
//
|
||||
@@ -821,7 +821,7 @@ Standard_Boolean IntTools_Context::IsVertexOnLine
|
||||
|
||||
aPv=BRep_Tool::Pnt(aV);
|
||||
|
||||
Handle(Geom_Curve) aC3D=aC.Curve();
|
||||
const Handle(Geom_Curve)& aC3D=aC.Curve();
|
||||
|
||||
|
||||
aTolSum=aTolV+aTolC;
|
||||
|
@@ -201,12 +201,12 @@ static
|
||||
Standard_Integer IntTools_Tools::SplitCurve(const IntTools_Curve& IC,
|
||||
IntTools_SequenceOfCurves& aCvs)
|
||||
{
|
||||
Handle (Geom_Curve) aC3D =IC.Curve();
|
||||
const Handle (Geom_Curve)& aC3D =IC.Curve();
|
||||
if(aC3D.IsNull())
|
||||
return 0;
|
||||
//
|
||||
Handle (Geom2d_Curve) aC2D1=IC.FirstCurve2d();
|
||||
Handle (Geom2d_Curve) aC2D2=IC.SecondCurve2d();
|
||||
const Handle (Geom2d_Curve)& aC2D1=IC.FirstCurve2d();
|
||||
const Handle (Geom2d_Curve)& aC2D2=IC.SecondCurve2d();
|
||||
Standard_Boolean bIsClosed;
|
||||
|
||||
bIsClosed=IntTools_Tools::IsClosed(aC3D);
|
||||
|
Reference in New Issue
Block a user