From 03647d2249f72b6545628bb844685f87c4581062 Mon Sep 17 00:00:00 2001 From: hop311 Date: Fri, 19 Jul 2024 19:02:25 +0100 Subject: Cleanup: inheritance, const movable variables, code formatting --- src/openvic-simulation/dataloader/Vic2PathSearch_Windows.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/openvic-simulation/dataloader/Vic2PathSearch_Windows.hpp') diff --git a/src/openvic-simulation/dataloader/Vic2PathSearch_Windows.hpp b/src/openvic-simulation/dataloader/Vic2PathSearch_Windows.hpp index 37991b6..cfb3651 100644 --- a/src/openvic-simulation/dataloader/Vic2PathSearch_Windows.hpp +++ b/src/openvic-simulation/dataloader/Vic2PathSearch_Windows.hpp @@ -55,7 +55,7 @@ namespace OpenVic::Windows { template concept has_data = requires(T t) { - { t.data() } -> std::convertible_to; + { t.data() } -> std::convertible_to; }; class RegistryKey { @@ -116,7 +116,7 @@ namespace OpenVic::Windows { DWORD data_size; DWORD type; - const auto& wide_value = [&value_name]() -> has_data auto { + auto const& wide_value = [&value_name]() -> has_data auto { if constexpr (std::is_same_v) { return convert(value_name); } else { @@ -161,7 +161,7 @@ namespace OpenVic::Windows { } template - std::basic_string ReadRegValue(HKEY root, const CHAR_T* key, const CHAR_T2* name) { + std::basic_string ReadRegValue(HKEY root, CHAR_T const* key, CHAR_T2 const* name) { auto key_sv = std::basic_string_view(key); auto name_sv = std::basic_string_view(name); -- cgit v1.2.3-56-ga3b1