From 3d7fbd9b376811ca0ed226fa78bcc8b6279ba8dc Mon Sep 17 00:00:00 2001 From: Hop311 Date: Sat, 9 Sep 2023 21:49:52 +0100 Subject: Format cleanup and req comments --- src/openvic-simulation/dataloader/NodeTools.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/openvic-simulation/dataloader/NodeTools.hpp') diff --git a/src/openvic-simulation/dataloader/NodeTools.hpp b/src/openvic-simulation/dataloader/NodeTools.hpp index 805de94..a68e922 100644 --- a/src/openvic-simulation/dataloader/NodeTools.hpp +++ b/src/openvic-simulation/dataloader/NodeTools.hpp @@ -2,12 +2,12 @@ #include +#include + #include "openvic-simulation/types/Colour.hpp" #include "openvic-simulation/types/Date.hpp" #include "openvic-simulation/types/fixed_point/FixedPoint.hpp" -#include - namespace OpenVic { namespace ast = ovdl::v2script::ast; @@ -56,7 +56,7 @@ namespace OpenVic { size_t count; dictionary_entry_t(expected_count_t new_expected_count, node_callback_t new_callback) - : expected_count { new_expected_count }, callback { new_callback }, count { 0 } {} + : expected_count { new_expected_count }, callback { new_callback }, count { 0 } {} constexpr bool must_appear() const { return static_cast(expected_count) & static_cast(expected_count_t::_MUST_APPEAR); @@ -106,7 +106,7 @@ namespace OpenVic { template concept Reservable = requires(T& t) { { t.size() } -> std::same_as; - t.reserve( size_t {} ); + t.reserve(size_t {}); }; template node_callback_t expect_list_reserve_length(T& t, node_callback_t callback) { -- cgit v1.2.3-56-ga3b1