From 0c11c25c665151fc440ee1f64c418fee77267ae2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20B=C3=A9raud?= Date: Tue, 17 Nov 2020 11:34:40 -0500 Subject: [PATCH] infohash: make toHex inline --- include/opendht/infohash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/opendht/infohash.h b/include/opendht/infohash.h index 0242747b..2a537ae9 100644 --- a/include/opendht/infohash.h +++ b/include/opendht/infohash.h @@ -354,7 +354,7 @@ private: OPENDHT_PUBLIC extern const HexMap hex_map; -std::string +inline std::string toHex(const uint8_t* data, size_t size) { std::string ret('\0', size * 2); for (size_t i=0; i