mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-01 11:32:11 +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:
@@ -245,7 +245,7 @@ void TTrainParameters::UpdateVelocity(int Stationcount, double vActual)
|
||||
// return false;
|
||||
//}
|
||||
|
||||
bool TTrainParameters::LoadTTfile(std::string scnpath, int iPlus, double vmax)
|
||||
bool TTrainParameters::LoadTTfile(std::string const &scnpath, int iPlus, double vmax)
|
||||
// wczytanie pliku-tabeli z rozkładem przesuniętym o (fPlus); (vMax) nie ma znaczenia
|
||||
{
|
||||
std::string lines;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user