GetPriceForTimeStep(): remove default parameter.

This commit is contained in:
Gerhard Hoffmann 2024-07-29 17:28:27 +02:00
parent 37652d3b6a
commit 24ab01695d

View File

@ -133,10 +133,10 @@ private:
int durationMinutes); int durationMinutes);
// //
uint32_t GetPriceForTimeStep(Configuration *cfg, int timeStep, int paymentOptionIndex=0) const; uint32_t GetPriceForTimeStep(Configuration *cfg, int timeStep, int paymentOptionIndex) const;
uint32_t GetPriceForStep(Configuration *cfg, int step) const { //uint32_t GetPriceForStep(Configuration *cfg, int step) const {
return GetPriceForTimeStep(cfg, step); // return GetPriceForTimeStep(cfg, step, 0);
} //}
uint32_t GetDurationForPrice(Configuration *cfg, int price) const; uint32_t GetDurationForPrice(Configuration *cfg, int price) const;
uint32_t GetStepForPrice(Configuration *cfg, int price) const { uint32_t GetStepForPrice(Configuration *cfg, int price) const {
return GetDurationForPrice(cfg, price); return GetDurationForPrice(cfg, price);