mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-13 14:27:08 +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:
@@ -195,7 +195,7 @@ Standard_Boolean STEPConstruct_Assembly::CheckSRRReversesNAUO(const Interface_Gr
|
||||
Handle(Standard_Type) tSDR = STANDARD_TYPE(StepShape_ShapeDefinitionRepresentation);
|
||||
Interface_EntityIterator anIter = theGraph.Sharings(rep1);
|
||||
for (; anIter.More() && pd1.IsNull(); anIter.Next()) {
|
||||
Handle(Standard_Transient) enti = anIter.Value();
|
||||
const Handle(Standard_Transient)& enti = anIter.Value();
|
||||
if (enti->DynamicType() == tSDR) {
|
||||
Handle(StepShape_ShapeDefinitionRepresentation) SDR =
|
||||
Handle(StepShape_ShapeDefinitionRepresentation)::DownCast(enti);
|
||||
@@ -206,7 +206,7 @@ Standard_Boolean STEPConstruct_Assembly::CheckSRRReversesNAUO(const Interface_Gr
|
||||
|
||||
anIter = theGraph.Sharings(rep2);
|
||||
for (; anIter.More() && pd2.IsNull(); anIter.Next()) {
|
||||
Handle(Standard_Transient) enti = anIter.Value();
|
||||
const Handle(Standard_Transient)& enti = anIter.Value();
|
||||
if (enti->DynamicType() == tSDR) {
|
||||
Handle(StepShape_ShapeDefinitionRepresentation) SDR =
|
||||
Handle(StepShape_ShapeDefinitionRepresentation)::DownCast(enti);
|
||||
|
@@ -229,7 +229,7 @@ Standard_Boolean STEPConstruct_ExternRefs::LoadExternRefs ()
|
||||
// for each DocumentFile, find associated with it data:
|
||||
Interface_EntityIterator subs = Graph().Sharings(DocFile);
|
||||
for (subs.Start(); subs.More(); subs.Next()) {
|
||||
Handle(Standard_Transient) sub = subs.Value();
|
||||
const Handle(Standard_Transient)& sub = subs.Value();
|
||||
|
||||
// FORMAT - ???????
|
||||
//
|
||||
@@ -659,7 +659,7 @@ Standard_Integer STEPConstruct_ExternRefs::AddExternRef (const Standard_CString
|
||||
// Handle(Standard_Transient) sub = subs.Value();
|
||||
Interface_EntityIterator subs = Graph().Sharings(PD);
|
||||
for (subs.Start(); subs.More(); subs.Next()) {
|
||||
Handle(Standard_Transient) sub = subs.Value();
|
||||
const Handle(Standard_Transient)& sub = subs.Value();
|
||||
if (!sub->IsKind(STANDARD_TYPE(StepRepr_ProductDefinitionShape))) continue;
|
||||
Handle(StepRepr_ProductDefinitionShape) ProdDefSh =
|
||||
Handle(StepRepr_ProductDefinitionShape)::DownCast ( sub );
|
||||
@@ -682,7 +682,7 @@ Standard_Integer STEPConstruct_ExternRefs::AddExternRef (const Standard_CString
|
||||
// Interface_EntityIterator subs2 = Graph().Sharings(ProdDef);
|
||||
Interface_EntityIterator subs2 = Graph().Sharings(PD);
|
||||
for (subs2.Start(); subs2.More(); subs2.Next()) {
|
||||
Handle(Standard_Transient) sub2 = subs2.Value();
|
||||
const Handle(Standard_Transient)& sub2 = subs2.Value();
|
||||
|
||||
if (sub2->IsKind(STANDARD_TYPE(StepRepr_NextAssemblyUsageOccurrence))) {
|
||||
Handle(StepRepr_NextAssemblyUsageOccurrence) NAUO =
|
||||
|
Reference in New Issue
Block a user