From c3c888dc04486c758e2a9a534fcf745da296d260 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Tue, 16 Jul 2024 16:46:43 +0200 Subject: [PATCH] GetTimeSteps(): remove list as reference so compute_next_timestep)_ can change it --- 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 3ad5a03..e1c9dbe 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;