mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 08:39:19 +02: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:
@@ -164,7 +164,7 @@ basic_controller::deserialize_operation( cParser &Input ) -> bool {
|
||||
}
|
||||
|
||||
auto
|
||||
basic_controller::insert( std::string const Name, basic_element Element ) -> element_handle {
|
||||
basic_controller::insert( std::string const &Name, basic_element Element ) -> element_handle {
|
||||
|
||||
m_elements.push_back( Element );
|
||||
m_elementnames.push_back( Name );
|
||||
|
||||
Reference in New Issue
Block a user