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:
@@ -157,7 +157,7 @@ Standard_Integer IGESToBRep_Reader::LoadFile (const Standard_CString filename)
|
||||
Interface_CheckTool cht (model,protocol);
|
||||
Interface_CheckIterator anIter = cht.CompleteCheckList();
|
||||
for(anIter.Start(); anIter.More(); anIter.Next()) {
|
||||
const Handle(Interface_Check) ach = anIter.Value();
|
||||
const Handle(Interface_Check)& ach = anIter.Value();
|
||||
nbWarn += ach->NbWarnings();
|
||||
nbFail += ach->NbFails();
|
||||
}
|
||||
|
@@ -1590,7 +1590,7 @@ TopoDS_Shape IGESToBRep_TopoSurface::TransferPlaneParts(const Handle(IGESGeom_Pl
|
||||
return res;
|
||||
}
|
||||
|
||||
TopoDS_Face F = MF.Face();
|
||||
const TopoDS_Face& F = MF.Face();
|
||||
GProp_GProps G;
|
||||
BRepGProp::SurfaceProperties(F,G);
|
||||
if (G.Mass() < 0) {
|
||||
|
Reference in New Issue
Block a user