mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-08-10 16:32:33 +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:
@@ -64,7 +64,7 @@ IFGraph_Articulations::IFGraph_Articulations
|
||||
|
||||
for (Interface_EntityIterator iter = thegraph.Shareds(thegraph.Entity(num));
|
||||
iter.More(); iter.Next()) {
|
||||
Handle(Standard_Transient) ent = iter.Value();
|
||||
const Handle(Standard_Transient)& ent = iter.Value();
|
||||
Standard_Integer nument = thegraph.EntityNumber(ent);
|
||||
if (!thegraph.IsPresent(num)) {
|
||||
thegraph.GetFromEntity(ent,Standard_False);
|
||||
|
||||
@@ -35,7 +35,7 @@ IFGraph_ConnectedComponants::IFGraph_ConnectedComponants
|
||||
Interface_EntityIterator loaded = Loaded();
|
||||
Reset();
|
||||
for (loaded.Start(); loaded.More(); loaded.Next()) {
|
||||
Handle(Standard_Transient) ent = loaded.Value();
|
||||
const Handle(Standard_Transient)& ent = loaded.Value();
|
||||
if (IsInPart(ent)) continue;
|
||||
IFGraph_AllConnected connect(Model(),ent);
|
||||
AddPart();
|
||||
|
||||
Reference in New Issue
Block a user