GetTimeSteps(): remove list as reference so compute_next_timestep)_ can change it

This commit is contained in:
Gerhard Hoffmann 2024-07-16 16:46:43 +02:00
parent 2ecaa0545f
commit c3c888dc04

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;