mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 06:19: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:
@@ -100,7 +100,7 @@ private:
|
||||
// methods
|
||||
auto deserialize_operation( cParser &Input ) -> bool;
|
||||
// adds provided item to the collection. returns: true if there's no duplicate with the same name, false otherwise
|
||||
auto insert( std::string const Name, basic_element Element ) -> element_handle;
|
||||
auto insert( std::string const &Name, basic_element Element ) -> element_handle;
|
||||
// runs one cycle of current program. returns: error code or 0 if there's no error
|
||||
auto run() -> int;
|
||||
void log_error( std::string const &Error, int const Line = -1 ) const;
|
||||
|
||||
Reference in New Issue
Block a user