16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-20 15:59:18 +02:00

reformat: parameters can be made const

This commit is contained in:
jerrrrycho
2026-07-04 07:08:14 +02:00
parent 6fd1d6715b
commit 220689a5e3
121 changed files with 1380 additions and 1352 deletions

View File

@@ -358,7 +358,7 @@ int TTraction::TestPoint(glm::dvec3 const &Point)
//łączenie segmentu (with) od strony (my) do jego (to)
void
TTraction::Connect(int my, TTraction *with, int to) {
TTraction::Connect(const int my, TTraction *with, const int to) {
hvNext[ my ] = with;
iNext[ my ] = to;
@@ -463,7 +463,7 @@ void TTraction::PowerSet(TTractionPowerSource *ps)
}
};
double TTraction::VoltageGet(double u, double i)
double TTraction::VoltageGet(const double u, const double i)
{ // pobranie napięcia na przęśle po podłączeniu do niego rezystancji (res) - na razie jest to prąd
if (!psSection)
if (!psPowered)