GetTimeSteps(): changed return type, so comoute_next_timestep() can change the first element of step-list

This commit is contained in:
Gerhard Hoffmann 2024-07-13 13:53:53 +02:00
parent 8367eb9fa8
commit a7f3477752

View File

@ -91,7 +91,7 @@ public:
// helper function to find time steps for a tariff with PaymentMethod::Steps
// (e.g. Schoenau/Koenigsee)
//
QList<int> GetTimeSteps(Configuration *cfg, int paymentOptionIndex=0) const;
QList<int> &GetTimeSteps(Configuration *cfg, int paymentOptionIndex=0) const;
QList<int> GetSteps(Configuration *cfg, int paymentOptionIndex=0) const { return GetTimeSteps(cfg, paymentOptionIndex); }
QList<int> GetPriceSteps(Configuration *cfg) const;