diff options
author | hop311 <hop3114@gmail.com> | 2024-07-19 20:02:25 +0200 |
---|---|---|
committer | hop311 <hop3114@gmail.com> | 2024-07-19 20:02:25 +0200 |
commit | 03647d2249f72b6545628bb844685f87c4581062 (patch) | |
tree | 435dde45bb17dc12e74cc79bd5f25cc7a7ef8dca /src/openvic-simulation/history/Period.hpp | |
parent | a673f89bb2705826b1c646365eab1775727372b7 (diff) |
Cleanup: inheritance, const movable variables, code formattingformat-cleanup
Diffstat (limited to 'src/openvic-simulation/history/Period.hpp')
-rw-r--r-- | src/openvic-simulation/history/Period.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
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<Date> end_date; public: - Period(const Date new_start_date, const std::optional<Date> 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<Date> new_end_date); + + bool is_date_in_period(Date date) const; + bool try_set_end(Date date); }; } |