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:
dpasukhi
2023-05-06 22:56:45 +00:00
committed by vglukhik
parent c28dd7f1cf
commit b2fedee6a1
265 changed files with 603 additions and 611 deletions

View File

@@ -58,7 +58,7 @@ static void BuildBack (const TopTools_DataMapOfShapeListOfShape& M1,
//=======================================================================
static void Replace ( TopTools_ListOfShape& L,
const TopoDS_Shape Old,
const TopoDS_Shape& Old,
const TopTools_ListOfShape& New)
{
//-----------------------------------
@@ -150,7 +150,7 @@ static void Update ( TopTools_DataMapOfShapeListOfShape& Mod,
if (!LIG.IsEmpty()) {
if (ModBack.IsBound(S)) {
// Generation de modif => generation du shape initial
TopoDS_Shape IS = ModBack(S);
const TopoDS_Shape& IS = ModBack(S);
StoreImage (Gen,IS,GenBack,LIG);
}
else {