security: move shared_ptr<PibImpl> when possible
Also rename m_impl to m_pib, since it's not a pimpl pointer.
Change-Id: I9e10ada54332318154374f61df6e387348ccc60a
diff --git a/src/security/pib/key-container.hpp b/src/security/pib/key-container.hpp
index 0c88249..55a799e 100644
--- a/src/security/pib/key-container.hpp
+++ b/src/security/pib/key-container.hpp
@@ -22,9 +22,10 @@
#ifndef NDN_SECURITY_PIB_KEY_CONTAINER_HPP
#define NDN_SECURITY_PIB_KEY_CONTAINER_HPP
+#include "key.hpp"
+
#include <set>
#include <unordered_map>
-#include "key.hpp"
namespace ndn {
namespace security {
@@ -126,9 +127,9 @@
NDN_CXX_PUBLIC_WITH_TESTS_ELSE_PRIVATE:
/**
* @brief Create key container for @p identity
- * @param impl The PIB backend implementation.
+ * @param pibImpl The PIB backend implementation.
*/
- KeyContainer(const Name& identity, shared_ptr<PibImpl> impl);
+ KeyContainer(const Name& identity, shared_ptr<PibImpl> pibImpl);
const std::set<Name>&
getKeyNames() const
@@ -148,7 +149,8 @@
/// @brief Cache of loaded detail::KeyImpl.
mutable std::unordered_map<Name, shared_ptr<detail::KeyImpl>> m_keys;
- shared_ptr<PibImpl> m_impl;
+ shared_ptr<PibImpl> m_pib;
+
friend class detail::IdentityImpl;
};