From e91ce707b2c0e80591b9fd1b6a5215e6e6989df8 Mon Sep 17 00:00:00 2001 From: hop311 Date: Sun, 29 Oct 2023 23:06:10 +0000 Subject: Stop passing Dates by reference --- src/openvic-simulation/economy/Building.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/openvic-simulation/economy/Building.cpp') diff --git a/src/openvic-simulation/economy/Building.cpp b/src/openvic-simulation/economy/Building.cpp index 39b49ee..38a8863 100644 --- a/src/openvic-simulation/economy/Building.cpp +++ b/src/openvic-simulation/economy/Building.cpp @@ -129,11 +129,11 @@ ExpansionState BuildingInstance::get_expansion_state() const { return expansion_state; } -Date const& BuildingInstance::get_start_date() const { +Date BuildingInstance::get_start_date() const { return start; } -Date const& BuildingInstance::get_end_date() const { +Date BuildingInstance::get_end_date() const { return end; } @@ -153,7 +153,7 @@ bool BuildingInstance::expand() { /* REQUIREMENTS: * MAP-71, MAP-74, MAP-77 */ -void BuildingInstance::update_state(Date const& today) { +void BuildingInstance::update_state(Date today) { switch (expansion_state) { case ExpansionState::Preparing: start = today; @@ -166,7 +166,7 @@ void BuildingInstance::update_state(Date const& today) { } } -void BuildingInstance::tick(Date const& today) { +void BuildingInstance::tick(Date today) { if (expansion_state == ExpansionState::Preparing) { expansion_state = ExpansionState::Expanding; } -- cgit v1.2.3-56-ga3b1