mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +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:
@@ -112,7 +112,7 @@ void Message_PrinterToReport::send (const TCollection_AsciiString& theString,
|
||||
//function : sendMetricAlert
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
void Message_PrinterToReport::sendMetricAlert (const TCollection_AsciiString theValue,
|
||||
void Message_PrinterToReport::sendMetricAlert (const TCollection_AsciiString& theValue,
|
||||
const Message_Gravity theGravity) const
|
||||
{
|
||||
Message_AlertExtended::AddAlert (Report(), new Message_AttributeMeter (theValue), theGravity);
|
||||
|
@@ -61,7 +61,7 @@ protected:
|
||||
const Message_Gravity theGravity) const Standard_OVERRIDE;
|
||||
|
||||
//! Send an alert with metrics active in the current report
|
||||
Standard_EXPORT void sendMetricAlert (const TCollection_AsciiString theValue,
|
||||
Standard_EXPORT void sendMetricAlert (const TCollection_AsciiString& theValue,
|
||||
const Message_Gravity theGravity) const;
|
||||
|
||||
private:
|
||||
|
@@ -148,7 +148,7 @@ void Message_Report::ActivateInMessenger (const Standard_Boolean toActivate,
|
||||
Message_SequenceOfPrinters aPrintersToRemove;
|
||||
for (Message_SequenceOfPrinters::Iterator anIterator (aMessenger->Printers()); anIterator.More(); anIterator.Next())
|
||||
{
|
||||
const Handle(Message_Printer) aPrinter = anIterator.Value();
|
||||
const Handle(Message_Printer)& aPrinter = anIterator.Value();
|
||||
if (aPrinter->IsKind(STANDARD_TYPE (Message_PrinterToReport)) &&
|
||||
Handle(Message_PrinterToReport)::DownCast (aPrinter)->Report() == this)
|
||||
aPrintersToRemove.Append (aPrinter);
|
||||
|
Reference in New Issue
Block a user