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:
@@ -168,7 +168,7 @@ void IGESData_GeneralModule::FillSharedCase
|
||||
if (enfr->NbAssociativities() != 0) {
|
||||
for (Interface_EntityIterator iter = enfr->Associativities();
|
||||
iter.More(); iter.Next()) {
|
||||
Handle(Standard_Transient) anent = iter.Value();
|
||||
const Handle(Standard_Transient)& anent = iter.Value();
|
||||
Handle(Standard_Transient) newent;
|
||||
if (TC.Search(anent,newent)) ento->AddAssociativity
|
||||
(GetCasted(IGESData_IGESEntity,newent));
|
||||
|
@@ -492,7 +492,7 @@ void IGESData_VerifyDate(const Handle(TCollection_HAsciiString)& str,
|
||||
if (str.IsNull())
|
||||
{ ach->SendFail(Msg57); return; }
|
||||
|
||||
Handle(TCollection_HAsciiString) stdvar = str;
|
||||
const Handle(TCollection_HAsciiString)& stdvar = str;
|
||||
if (strcmp(mess,"Last Change Date")==0)
|
||||
Msg57.Arg(25);
|
||||
else
|
||||
|
Reference in New Issue
Block a user