daemon: Replace shared_ptr with unique_ptr in Nfd
Change-Id: I97d39ddb793abfe4552002c94778b95e6b96f869
Refs: #2496
diff --git a/daemon/nfd.hpp b/daemon/nfd.hpp
index f9cac45..92e6efd 100644
--- a/daemon/nfd.hpp
+++ b/daemon/nfd.hpp
@@ -62,6 +62,11 @@
Nfd(const ConfigSection& config, ndn::KeyChain& keyChain);
/**
+ * \brief Destructor
+ */
+ ~Nfd();
+
+ /**
* \brief Perform initialization of NFD instance
* After initialization, NFD instance can be started by invoking run on globalIoService
*/
@@ -85,13 +90,13 @@
std::string m_configFile;
ConfigSection m_configSection;
- shared_ptr<Forwarder> m_forwarder;
+ unique_ptr<Forwarder> m_forwarder;
shared_ptr<InternalFace> m_internalFace;
- shared_ptr<FibManager> m_fibManager;
- shared_ptr<FaceManager> m_faceManager;
- shared_ptr<StrategyChoiceManager> m_strategyChoiceManager;
- shared_ptr<StatusServer> m_statusServer;
+ unique_ptr<FibManager> m_fibManager;
+ unique_ptr<FaceManager> m_faceManager;
+ unique_ptr<StrategyChoiceManager> m_strategyChoiceManager;
+ unique_ptr<StatusServer> m_statusServer;
ndn::KeyChain& m_keyChain;
};