summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-10-01 23:17:08 +0200
committerZach Hilman <zachhilman@gmail.com>2018-10-04 17:34:36 +0200
commit70bd2bb1d3aec23fc052c9612f9e530c1a2de72d (patch)
tree309d313d8182778919cafff884fd962267d2b38c /src/common
parentips_layer: Add support for escape sequences and midline comments (diff)
downloadyuzu-70bd2bb1d3aec23fc052c9612f9e530c1a2de72d.tar
yuzu-70bd2bb1d3aec23fc052c9612f9e530c1a2de72d.tar.gz
yuzu-70bd2bb1d3aec23fc052c9612f9e530c1a2de72d.tar.bz2
yuzu-70bd2bb1d3aec23fc052c9612f9e530c1a2de72d.tar.lz
yuzu-70bd2bb1d3aec23fc052c9612f9e530c1a2de72d.tar.xz
yuzu-70bd2bb1d3aec23fc052c9612f9e530c1a2de72d.tar.zst
yuzu-70bd2bb1d3aec23fc052c9612f9e530c1a2de72d.zip
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) {
return out;
}
-std::string HexVectorToString(std::vector<u8> vector, bool upper) {
+std::string HexVectorToString(const std::vector<u8>& vector, bool upper) {
std::string out;
for (u8 c : vector)
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) {
return out;
}
-std::string HexVectorToString(std::vector<u8> vector, bool upper = true);
+std::string HexVectorToString(const std::vector<u8>& vector, bool upper = true);
template <std::size_t Size>
std::string HexArrayToString(std::array<u8, Size> array, bool upper = true) {