From c9325cea0aa43f328644157dee4eafe3d7b45e6f Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Tue, 8 Oct 2024 15:34:56 +0200 Subject: Name local variables using lower_case ...and private members using lower_case_ --- src/utils/cpp/hex_string.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils/cpp/hex_string.hpp') diff --git a/src/utils/cpp/hex_string.hpp b/src/utils/cpp/hex_string.hpp index 4b0124c4..5cca094a 100644 --- a/src/utils/cpp/hex_string.hpp +++ b/src/utils/cpp/hex_string.hpp @@ -44,7 +44,7 @@ [[nodiscard]] static inline auto FromHexString(std::string const& hexstring) -> std::optional { try { - const std::size_t kHexBase = 16; + static constexpr std::size_t kHexBase = 16; std::stringstream ss{}; for (std::size_t i = 0; i < hexstring.length(); i += 2) { unsigned char c = -- cgit v1.2.3