summaryrefslogtreecommitdiff
path: root/src/DHTAutoSaveCommand.cc
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/DHTAutoSaveCommand.cc
parent1a5d75e819604a46b72d1f07401ac5017c96ad15 (diff)
Use std::unique_ptr in DHTRegistry
Diffstat (limited to 'src/DHTAutoSaveCommand.cc')
-rw-r--r--src/DHTAutoSaveCommand.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/DHTAutoSaveCommand.cc b/src/DHTAutoSaveCommand.cc
index 05f04e4f..3e30e341 100644
--- a/src/DHTAutoSaveCommand.cc
+++ b/src/DHTAutoSaveCommand.cc
@@ -58,8 +58,9 @@ namespace aria2 {
DHTAutoSaveCommand::DHTAutoSaveCommand
(cuid_t cuid, DownloadEngine* e, int family, time_t interval)
- : TimeBasedCommand(cuid, e, interval),
- family_(family)
+ : TimeBasedCommand{cuid, e, interval},
+ family_{family},
+ routingTable_{nullptr}
{}
DHTAutoSaveCommand::~DHTAutoSaveCommand() {}
@@ -122,8 +123,7 @@ void DHTAutoSaveCommand::setLocalNode(const std::shared_ptr<DHTNode>& localNode)
localNode_ = localNode;
}
-void DHTAutoSaveCommand::setRoutingTable
-(const std::shared_ptr<DHTRoutingTable>& routingTable)
+void DHTAutoSaveCommand::setRoutingTable(DHTRoutingTable* routingTable)
{
routingTable_ = routingTable;
}