diff options
| author | 2018-10-01 17:17:08 -0400 | |
|---|---|---|
| committer | 2018-10-04 11:34:36 -0400 | |
| commit | 70bd2bb1d3aec23fc052c9612f9e530c1a2de72d (patch) | |
| tree | 309d313d8182778919cafff884fd962267d2b38c /src/common/hex_util.cpp | |
| parent | ips_layer: Add support for escape sequences and midline comments (diff) | |
| download | yuzu-70bd2bb1d3aec23fc052c9612f9e530c1a2de72d.tar.gz yuzu-70bd2bb1d3aec23fc052c9612f9e530c1a2de72d.tar.xz yuzu-70bd2bb1d3aec23fc052c9612f9e530c1a2de72d.zip | |
ips_layer: Deduplicate resource usage
Diffstat (limited to 'src/common/hex_util.cpp')
| -rw-r--r-- | src/common/hex_util.cpp | 2 |
1 files changed, 1 insertions, 1 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 | ||
| 33 | std::string HexVectorToString(std::vector<u8> vector, bool upper) { | 33 | std::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); |