ips_layer: Deduplicate resource usage

This commit is contained in:
Zach Hilman 2018-10-01 17:17:08 -04:00
parent 9669cdb710
commit 70bd2bb1d3
5 changed files with 39 additions and 33 deletions

View file

@ -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);