aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/history/Period.hpp
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2024-07-19 21:35:31 +0200
committer GitHub <noreply@github.com>2024-07-19 21:35:31 +0200
commitd1f3a96b72dd06b5f97dd4643e5f016a02b42ea6 (patch)
tree38015e5729afbb98cf520e2cf26d8a4623d32f2f /src/openvic-simulation/history/Period.hpp
parente0518bee9b4c164f40716a8033b5e207c2060c0b (diff)
parent03647d2249f72b6545628bb844685f87c4581062 (diff)
Merge pull request #176 from OpenVicProject/format-cleanup
Cleanup: inheritance, const movable variables, code formatting
Diffstat (limited to 'src/openvic-simulation/history/Period.hpp')
-rw-r--r--src/openvic-simulation/history/Period.hpp7
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);
};
}