diff options
author | Hop311 <hop3114@gmail.com> | 2023-09-09 22:49:52 +0200 |
---|---|---|
committer | Hop311 <hop3114@gmail.com> | 2023-09-09 22:50:29 +0200 |
commit | 3d7fbd9b376811ca0ed226fa78bcc8b6279ba8dc (patch) | |
tree | eb36a9b030b263d825eb93638e64deb0dbd38a78 /src/openvic-simulation/dataloader/NodeTools.hpp | |
parent | b4220ad73e14e3b497b2fdeb83d76a6633664764 (diff) |
Format cleanup and req comments
Diffstat (limited to 'src/openvic-simulation/dataloader/NodeTools.hpp')
-rw-r--r-- | src/openvic-simulation/dataloader/NodeTools.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
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 <map> +#include <openvic-dataloader/v2script/AbstractSyntaxTree.hpp> + #include "openvic-simulation/types/Colour.hpp" #include "openvic-simulation/types/Date.hpp" #include "openvic-simulation/types/fixed_point/FixedPoint.hpp" -#include <openvic-dataloader/v2script/AbstractSyntaxTree.hpp> - 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<uint8_t>(expected_count) & static_cast<uint8_t>(expected_count_t::_MUST_APPEAR); @@ -106,7 +106,7 @@ namespace OpenVic { template<typename T> concept Reservable = requires(T& t) { { t.size() } -> std::same_as<size_t>; - t.reserve( size_t {} ); + t.reserve(size_t {}); }; template<Reservable T> node_callback_t expect_list_reserve_length(T& t, node_callback_t callback) { |