mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +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:
@@ -80,7 +80,7 @@ void TDF_CopyLabel::ExternalReferences(const TDF_Label& aRefLabel, const TDF_Lab
|
||||
// TDF_Tool::Entry(itr.Value()->Label(), entr1); //d
|
||||
// std::cout<<"\tSource Attribute dynamic type = "<<itr.Value()->DynamicType()<<" Label = "<<entr1 <<std::endl;
|
||||
for (TDF_MapIteratorOfAttributeMap attMItr(attMap);attMItr.More(); attMItr.Next()) {
|
||||
Handle(TDF_Attribute) att = attMItr.Key();
|
||||
const Handle(TDF_Attribute)& att = attMItr.Key();
|
||||
|
||||
// TDF_Tool::Entry(att->Label(), entr1);
|
||||
// std::cout<<"\t\tReferences attribute dynamic type = "<<att->DynamicType()<<" Label = "<<entr1 <<std::endl;
|
||||
@@ -169,7 +169,7 @@ void TDF_CopyLabel::Perform()
|
||||
TDF_ClosureTool::Closure(ds, myFilter, mode);
|
||||
if(extReferers) {
|
||||
for (TDF_MapIteratorOfAttributeMap attMItr(myMapOfExt);attMItr.More(); attMItr.Next()) {
|
||||
Handle(TDF_Attribute) att = attMItr.Key();
|
||||
const Handle(TDF_Attribute)& att = attMItr.Key();
|
||||
myRT->SetRelocation(att, att);
|
||||
#ifdef OCCT_DEBUG
|
||||
PrintEntry(att->Label(), Standard_True);
|
||||
|
@@ -243,7 +243,7 @@ Standard_Integer TDF_Data::CommitTransaction
|
||||
if (aPtrCurrentAtt->mySavedTransaction >=
|
||||
aPtrCurrentAtt->myTransaction)
|
||||
{
|
||||
const Handle(TDF_Attribute) currentAtt = aPtrCurrentAtt;
|
||||
const Handle(TDF_Attribute)& currentAtt = aPtrCurrentAtt;
|
||||
// Collision with a not forgotten version.
|
||||
if (backupAtt.IsNull()) {
|
||||
TDF_Data_DeltaCreation
|
||||
|
@@ -172,7 +172,7 @@ static Standard_Boolean TDF_Tool_DescendantRef
|
||||
attMItr.More(); attMItr.Next()) {
|
||||
// CLE
|
||||
// const Handle(TDF_Attribute)& att = attMItr.Key();
|
||||
Handle(TDF_Attribute) att = attMItr.Key();
|
||||
const Handle(TDF_Attribute)& att = attMItr.Key();
|
||||
if (!att.IsNull() && !att->Label().IsNull())
|
||||
{
|
||||
// ENDCLE
|
||||
@@ -242,7 +242,7 @@ static void TDF_Tool_OutReferers(const TDF_Label& aRefLabel,
|
||||
attMItr.More(); attMItr.Next()) {
|
||||
// CLE
|
||||
// const Handle(TDF_Attribute)& att = attMItr.Key();
|
||||
Handle(TDF_Attribute) att = attMItr.Key();
|
||||
const Handle(TDF_Attribute)& att = attMItr.Key();
|
||||
// ENDCLE
|
||||
if (aFilterForReferences.IsKept(att) &&
|
||||
!att->Label().IsNull() &&
|
||||
@@ -316,7 +316,7 @@ static void TDF_Tool_OutReferences(const TDF_Label& aRefLabel,
|
||||
itr.Value()->References(ds);
|
||||
const TDF_AttributeMap& attMap = ds->Attributes();
|
||||
for (TDF_MapIteratorOfAttributeMap attMItr(attMap);attMItr.More();attMItr.Next()) {
|
||||
Handle(TDF_Attribute) att = attMItr.Key();
|
||||
const Handle(TDF_Attribute)& att = attMItr.Key();
|
||||
if (aFilterForReferences.IsKept(att) &&
|
||||
!att->Label().IsNull() &&
|
||||
!att->Label().IsDescendant(aRefLabel))
|
||||
|
Reference in New Issue
Block a user