summaryrefslogtreecommitdiff
path: root/src/DHTEntryPointNameResolveCommand.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-07-02 23:52:40 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-07-02 23:52:40 +0900
commitf022402dc91e7796032dfbeacd730bb8bf201920 (patch)
treec1077b38113cbdf3fc8f2ac01c8846e770d81814 /src/DHTEntryPointNameResolveCommand.h
parent1a5d75e819604a46b72d1f07401ac5017c96ad15 (diff)
Use std::unique_ptr in DHTRegistry
Diffstat (limited to 'src/DHTEntryPointNameResolveCommand.h')
-rw-r--r--src/DHTEntryPointNameResolveCommand.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/DHTEntryPointNameResolveCommand.h b/src/DHTEntryPointNameResolveCommand.h
index fde848fc..e9a09350 100644
--- a/src/DHTEntryPointNameResolveCommand.h
+++ b/src/DHTEntryPointNameResolveCommand.h
@@ -62,15 +62,15 @@ private:
std::shared_ptr<AsyncNameResolverMan> asyncNameResolverMan_;
#endif // ENABLE_ASYNC_DNS
- std::shared_ptr<DHTTaskQueue> taskQueue_;
+ DHTTaskQueue* taskQueue_;
- std::shared_ptr<DHTTaskFactory> taskFactory_;
+ DHTTaskFactory* taskFactory_;
- std::shared_ptr<DHTRoutingTable> routingTable_;
+ DHTRoutingTable* routingTable_;
std::shared_ptr<DHTNode> localNode_;
- std::deque<std::pair<std::string, uint16_t> > entryPoints_;
+ std::deque<std::pair<std::string, uint16_t>> entryPoints_;
int numSuccess_;
@@ -94,11 +94,11 @@ public:
void setBootstrapEnabled(bool f);
- void setTaskQueue(const std::shared_ptr<DHTTaskQueue>& taskQueue);
+ void setTaskQueue(DHTTaskQueue* taskQueue);
- void setTaskFactory(const std::shared_ptr<DHTTaskFactory>& taskFactory);
+ void setTaskFactory(DHTTaskFactory* taskFactory);
- void setRoutingTable(const std::shared_ptr<DHTRoutingTable>& routingTable);
+ void setRoutingTable(DHTRoutingTable* routingTable);
void setLocalNode(const std::shared_ptr<DHTNode>& localNode);
};