mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-02 22:06:21 +01:00
refactor(sonar): declare loop counters in the for statement (cpp:S5955)
This commit is contained in:
@@ -2055,7 +2055,6 @@ double TEStED::GetPF(double const PP, double const dt, double const Vel)
|
||||
void TEStED::Init(double const PP, double const HPP, double const LPP, double const BP, int const BDF)
|
||||
{
|
||||
TLSt::Init(PP, HPP, LPP, BP, BDF);
|
||||
int i;
|
||||
|
||||
ValveRes->CreatePress(PP);
|
||||
BrakeCyl->CreatePress(BP);
|
||||
@@ -2090,7 +2089,7 @@ void TEStED::Init(double const PP, double const HPP, double const LPP, double co
|
||||
Nozzles[6] = 0.9;
|
||||
|
||||
{
|
||||
for (i = 0; i < 11; ++i)
|
||||
for (int i = 0; i < 11; ++i)
|
||||
{
|
||||
Nozzles[i] = Nozzles[i] * Nozzles[i] * 3.14159 / 4000;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user