diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-07-06 22:55:00 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-07-07 23:28:51 +0900 |
| commit | cf8cfeefbcfff1eebc2b5fde9f14ff3efff8d6e3 (patch) | |
| tree | 8765972ce2cec3a77454a42cefb927dfe119ee19 /src/DHTInteractionCommand.cc | |
| parent | fc6318d23f58827427be8ccbdab1a82da2a1c9bf (diff) | |
DHTInteractionCommand: Use std::unique_ptr for DHTConnection
Remove DHTConnection from DHTMessageReceiver because it is not used.
Diffstat (limited to 'src/DHTInteractionCommand.cc')
| -rw-r--r-- | src/DHTInteractionCommand.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DHTInteractionCommand.cc b/src/DHTInteractionCommand.cc index fe193cd4..f39c4803 100644 --- a/src/DHTInteractionCommand.cc +++ b/src/DHTInteractionCommand.cc @@ -162,9 +162,9 @@ void DHTInteractionCommand::setTaskQueue(DHTTaskQueue* taskQueue) } void DHTInteractionCommand::setConnection -(const std::shared_ptr<DHTConnection>& connection) +(std::unique_ptr<DHTConnection> connection) { - connection_ = connection; + connection_ = std::move(connection); } void DHTInteractionCommand::setUDPTrackerClient |
