mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-12 01:50:22 +08: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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user