From 736606a845b81b89d553c63511d89b02c0a29a9a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Simon=20D=C3=A9saulniers?= <sim.desaulniers@gmail.com>
Date: Tue, 14 Jun 2016 15:55:01 -0400
Subject: [PATCH] pht: a Key is rather map str:Blob not str:Prefix

---
 include/opendht/indexation/pht.h | 2 +-
 tools/tools_common.h             | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/opendht/indexation/pht.h b/include/opendht/indexation/pht.h
index c2b2e5c2..05ca637f 100644
--- a/include/opendht/indexation/pht.h
+++ b/include/opendht/indexation/pht.h
@@ -150,7 +150,7 @@ public:
      */
     static constexpr const size_t MAX_NODE_ENTRY_COUNT {16};
 
-    using Key = std::map<std::string, Prefix>;
+    using Key = std::map<std::string, Blob>;
 
     using LookupCallback = std::function<void(std::vector<std::shared_ptr<Value>>& values, Prefix p)>;
     typedef void (*LookupCallbackRaw)(std::vector<std::shared_ptr<Value>>* values, Prefix* p, void *user_data);
diff --git a/tools/tools_common.h b/tools/tools_common.h
index bd0d1974..9682b069 100644
--- a/tools/tools_common.h
+++ b/tools/tools_common.h
@@ -161,7 +161,7 @@ dht::indexation::Pht::Key createPhtKey(std::map<std::string, std::string> pht_ke
     dht::indexation::Pht::Key pht_key;
     for (auto f : pht_key_str_map) {
         dht::Blob prefix {f.second.begin(), f.second.end()};
-        pht_key.emplace(f.first, prefix);
+        pht_key.emplace(f.first, std::move(prefix));
     }
     return pht_key;
 }
-- 
GitLab