diff options
author | hop311 <hop3114@gmail.com> | 2024-07-19 20:02:25 +0200 |
---|---|---|
committer | hop311 <hop3114@gmail.com> | 2024-07-19 20:02:25 +0200 |
commit | 03647d2249f72b6545628bb844685f87c4581062 (patch) | |
tree | 435dde45bb17dc12e74cc79bd5f25cc7a7ef8dca /src/openvic-simulation/dataloader/Vic2PathSearch_Windows.hpp | |
parent | a673f89bb2705826b1c646365eab1775727372b7 (diff) |
Cleanup: inheritance, const movable variables, code formattingformat-cleanup
Diffstat (limited to 'src/openvic-simulation/dataloader/Vic2PathSearch_Windows.hpp')
-rw-r--r-- | src/openvic-simulation/dataloader/Vic2PathSearch_Windows.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
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<typename T> concept has_data = requires(T t) { - { t.data() } -> std::convertible_to<const typename T::value_type*>; + { t.data() } -> std::convertible_to<typename T::value_type const*>; }; 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<CHAR_T, char>) { return convert(value_name); } else { @@ -161,7 +161,7 @@ namespace OpenVic::Windows { } template<either_char_type RCHAR_T, either_char_type CHAR_T, either_char_type CHAR_T2> - std::basic_string<RCHAR_T> ReadRegValue(HKEY root, const CHAR_T* key, const CHAR_T2* name) { + std::basic_string<RCHAR_T> 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); |