diff options
author | hop311 <hop3114@gmail.com> | 2024-02-04 15:08:32 +0100 |
---|---|---|
committer | hop311 <hop3114@gmail.com> | 2024-02-04 15:08:32 +0100 |
commit | 3f6d7351816b0e089495b2f15dc1c956f3151f5a (patch) | |
tree | 606aacf5861d3897f102917cc3af1d6be3471f9f /src/openvic-simulation/history/Period.cpp | |
parent | 068c13ede817d17df599ca3481261bf17ed95604 (diff) |
Reworked ReturnByValue, warn_or_error, expect_date_[identifier_or_]string
Diffstat (limited to 'src/openvic-simulation/history/Period.cpp')
-rw-r--r-- | src/openvic-simulation/history/Period.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvic-simulation/history/Period.cpp b/src/openvic-simulation/history/Period.cpp index cb133dd..37758a1 100644 --- a/src/openvic-simulation/history/Period.cpp +++ b/src/openvic-simulation/history/Period.cpp @@ -5,7 +5,7 @@ using namespace OpenVic; Period::Period( const Date new_start_date, const std::optional<Date> new_end_date -) : start_date {new_start_date}, end_date {new_end_date} {} +) : start_date { new_start_date }, end_date { new_end_date } {} bool Period::is_date_in_period(const Date date) const { return start_date <= date && (!end_date.has_value() || end_date.value() >= date); |