17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-06 01:12:26 +01:00

refactor(sonar): pass expensive-to-copy parameters by const reference (cpp:S1238)

Signatures declared in files touched by PR 206 (Driver.h, EU07.cpp) and
virtual overrides are left unchanged.
This commit is contained in:
jerrrrycho
2026-10-10 17:16:40 +02:00
parent 4532d5e037
commit f6736fa233
26 changed files with 42 additions and 42 deletions

View File

@@ -76,7 +76,7 @@ std::string control_mapper::find(TSubModel const *Control) const
}
}
bool control_mapper::contains(std::string const Control) const
bool control_mapper::contains(std::string const &Control) const
{
return m_names.find(Control) != m_names.end();

View File

@@ -71,7 +71,7 @@ public:
std::string
find( TSubModel const *Control ) const;
bool
contains( std::string const Control ) const;
contains( std::string const &Control ) const;
};
class TTrain {