17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-05 07:34:27 +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.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jerrrrycho
2026-10-10 17:16:40 +02:00
parent 0a7c42c4a9
commit 5d33d89225
26 changed files with 42 additions and 42 deletions

View File

@@ -84,7 +84,7 @@ class TTrainParameters
explicit TTrainParameters( std::string const &NewTrainName = "none" );
void NewName(std::string const &NewTrainName);
void UpdateVelocity(int StationCount, double vActual);
bool LoadTTfile(std::string scnpath, int iPlus, double vmax);
bool LoadTTfile(std::string const &scnpath, int iPlus, double vmax);
bool DirectionChange() const;
void StationIndexInc();
void serialize( dictionary_source *Output ) const;