Skip to content

Commit

Permalink
Add a few const ref qualifiers to improve code readibility (#2459)
Browse files Browse the repository at this point in the history
  • Loading branch information
flomnes authored Oct 11, 2024
1 parent 7805562 commit b561809
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/solver/simulation/common-hydro-remix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ static bool Remix(const Data::AreaList& areas,

auto& D = weeklyResults.ValeursHorairesDeDefaillancePositive;

auto& S = weeklyResults.ValeursHorairesDeDefaillanceNegative;
const auto& S = weeklyResults.ValeursHorairesDeDefaillanceNegative;

auto& H = weeklyResults.TurbinageHoraire;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,18 +333,18 @@ class computeTimeStepLevel
double capacity;
std::vector<double>& inflows;
std::vector<double>& ovf;
std::vector<double>& turb;
const std::vector<double>& turb;
double pumpRatio;
std::vector<double>& pump;
const std::vector<double>& pump;
double excessDown;

public:
computeTimeStepLevel(const double& startLvl,
std::vector<double>& infl,
std::vector<double>& overfl,
std::vector<double>& H,
const std::vector<double>& H,
double pumpEff,
std::vector<double>& Pump,
const std::vector<double>& Pump,
double rc):
step(0),
level(startLvl),
Expand Down

0 comments on commit b561809

Please sign in to comment.