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/misc/Define.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/openvic-simulation/misc/Define.cpp') diff --git a/src/openvic-simulation/misc/Define.cpp b/src/openvic-simulation/misc/Define.cpp index 5e6a3cb..c866b5d 100644 --- a/src/openvic-simulation/misc/Define.cpp +++ b/src/openvic-simulation/misc/Define.cpp @@ -36,11 +36,11 @@ bool DefineManager::add_define(std::string_view name, std::string&& value, Defin return defines.add_item({ name, std::move(value), type }, duplicate_warning_callback); } -const Date& DefineManager::get_start_date() const { +Date DefineManager::get_start_date() const { return *start_date; } -const Date& DefineManager::get_end_date() const { +Date DefineManager::get_end_date() const { return *end_date; } -- cgit v1.2.3-56-ga3b1