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:
@@ -363,7 +363,7 @@ static Standard_Integer surfapp(Draw_Interpretor& di, Standard_Integer n, const
|
||||
|
||||
if (anApprox.IsDone())
|
||||
{
|
||||
Handle(Geom_BSplineSurface) S = anApprox.Surface();
|
||||
const Handle(Geom_BSplineSurface)& S = anApprox.Surface();
|
||||
DrawTrSurf::Set(a[1], S);
|
||||
di << a[1];
|
||||
}
|
||||
@@ -445,7 +445,7 @@ static Standard_Integer surfint(Draw_Interpretor& di, Standard_Integer n, const
|
||||
}
|
||||
if (anApprox.IsDone())
|
||||
{
|
||||
Handle(Geom_BSplineSurface) S = anApprox.Surface();
|
||||
const Handle(Geom_BSplineSurface)& S = anApprox.Surface();
|
||||
DrawTrSurf::Set(a[1], S);
|
||||
di << a[1];
|
||||
}
|
||||
|
@@ -543,7 +543,7 @@ static Standard_Integer interpol (Draw_Interpretor& di,Standard_Integer n, const
|
||||
1.0e-5) ;
|
||||
anInterpolator.Perform() ;
|
||||
if (anInterpolator.IsDone()) {
|
||||
Handle(Geom_BSplineCurve) C =
|
||||
const Handle(Geom_BSplineCurve)& C =
|
||||
anInterpolator.Curve();
|
||||
DrawTrSurf::Set(a[1], C);
|
||||
}
|
||||
@@ -560,7 +560,7 @@ static Standard_Integer interpol (Draw_Interpretor& di,Standard_Integer n, const
|
||||
1.0e-5);
|
||||
a2dInterpolator.Perform() ;
|
||||
if (a2dInterpolator.IsDone()) {
|
||||
Handle(Geom2d_BSplineCurve) C = a2dInterpolator.Curve() ;
|
||||
const Handle(Geom2d_BSplineCurve)& C = a2dInterpolator.Curve() ;
|
||||
DrawTrSurf::Set(a[1], C);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user