aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/history/Period.cpp
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2024-02-05 20:38:23 +0100
committer GitHub <noreply@github.com>2024-02-05 20:38:23 +0100
commit6489da997cddb20667db0455fa4f38319dc7c883 (patch)
tree4e343f81b13f166ad4a478962348d4734ea7e11b /src/openvic-simulation/history/Period.cpp
parent068c13ede817d17df599ca3481261bf17ed95604 (diff)
parent87fa1c74281a651b23089079c4c1621d4fb66d73 (diff)
Merge pull request #145 from OpenVicProject/gui-loading
Added support for loading all gui files
Diffstat (limited to 'src/openvic-simulation/history/Period.cpp')
-rw-r--r--src/openvic-simulation/history/Period.cpp2
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);