summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/hex_util.cpp2
-rw-r--r--src/common/hex_util.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/common/hex_util.cpp b/src/common/hex_util.cpp
index e516e5bbd..5b63f9e81 100644
--- a/src/common/hex_util.cpp
+++ b/src/common/hex_util.cpp
@@ -30,7 +30,7 @@ std::vector<u8> HexStringToVector(std::string_view str, bool little_endian) {
30 return out; 30 return out;
31} 31}
32 32
33std::string HexVectorToString(std::vector<u8> vector, bool upper) { 33std::string HexVectorToString(const std::vector<u8>& vector, bool upper) {
34 std::string out; 34 std::string out;
35 for (u8 c : vector) 35 for (u8 c : vector)
36 out += fmt::format(upper ? "{:02X}" : "{:02x}", c); 36 out += fmt::format(upper ? "{:02X}" : "{:02x}", c);
diff --git a/src/common/hex_util.h b/src/common/hex_util.h
index 0b7d3592a..68f003cb6 100644
--- a/src/common/hex_util.h
+++ b/src/common/hex_util.h
@@ -30,7 +30,7 @@ std::array<u8, Size> HexStringToArray(std::string_view str) {
30 return out; 30 return out;
31} 31}
32 32
33std::string HexVectorToString(std::vector<u8> vector, bool upper = true); 33std::string HexVectorToString(const std::vector<u8>& vector, bool upper = true);
34 34
35template <std::size_t Size> 35template <std::size_t Size>
36std::string HexArrayToString(std::array<u8, Size> array, bool upper = true) { 36std::string HexArrayToString(std::array<u8, Size> array, bool upper = true) {