From a7f3477752907d7f743bc5933fd81fa474297dc3 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Sat, 13 Jul 2024 13:53:53 +0200 Subject: [PATCH] GetTimeSteps(): changed return type, so comoute_next_timestep() can change the first element of step-list --- library/include/mobilisis/calculator_functions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/include/mobilisis/calculator_functions.h b/library/include/mobilisis/calculator_functions.h index de40267..be42a1f 100644 --- a/library/include/mobilisis/calculator_functions.h +++ b/library/include/mobilisis/calculator_functions.h @@ -91,7 +91,7 @@ public: // helper function to find time steps for a tariff with PaymentMethod::Steps // (e.g. Schoenau/Koenigsee) // - QList GetTimeSteps(Configuration *cfg, int paymentOptionIndex=0) const; + QList &GetTimeSteps(Configuration *cfg, int paymentOptionIndex=0) const; QList GetSteps(Configuration *cfg, int paymentOptionIndex=0) const { return GetTimeSteps(cfg, paymentOptionIndex); } QList GetPriceSteps(Configuration *cfg) const;