From 03647d2249f72b6545628bb844685f87c4581062 Mon Sep 17 00:00:00 2001 From: hop311 Date: Fri, 19 Jul 2024 19:02:25 +0100 Subject: Cleanup: inheritance, const movable variables, code formatting --- src/openvic-simulation/history/Period.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/openvic-simulation/history/Period.hpp') diff --git a/src/openvic-simulation/history/Period.hpp b/src/openvic-simulation/history/Period.hpp index d8b5ade..f59b16d 100644 --- a/src/openvic-simulation/history/Period.hpp +++ b/src/openvic-simulation/history/Period.hpp @@ -11,8 +11,9 @@ namespace OpenVic { std::optional end_date; public: - Period(const Date new_start_date, const std::optional new_end_date); - bool is_date_in_period(const Date date) const; - bool try_set_end(const Date date); + Period(Date new_start_date, std::optional new_end_date); + + bool is_date_in_period(Date date) const; + bool try_set_end(Date date); }; } -- cgit v1.2.3-56-ga3b1