mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-29 12:47:30 +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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user