From 07d270c87e6f9184aea4ca17eb26e466712e8db2 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 22 Jun 2013 01:10:38 +0900 Subject: Require -std=c++11 and use std::shared_ptr instead of SharedHandle --- src/DHTPingMessage.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/DHTPingMessage.cc') diff --git a/src/DHTPingMessage.cc b/src/DHTPingMessage.cc index 6038aab3..7ef680be 100644 --- a/src/DHTPingMessage.cc +++ b/src/DHTPingMessage.cc @@ -43,8 +43,8 @@ namespace aria2 { const std::string DHTPingMessage::PING("ping"); -DHTPingMessage::DHTPingMessage(const SharedHandle& localNode, - const SharedHandle& remoteNode, +DHTPingMessage::DHTPingMessage(const std::shared_ptr& localNode, + const std::shared_ptr& remoteNode, const std::string& transactionID): DHTQueryMessage(localNode, remoteNode, transactionID) {} @@ -53,15 +53,15 @@ DHTPingMessage::~DHTPingMessage() {} void DHTPingMessage::doReceivedAction() { // send back ping reply - SharedHandle reply = + std::shared_ptr reply = getMessageFactory()->createPingReplyMessage (getRemoteNode(), getLocalNode()->getID(), getTransactionID()); getMessageDispatcher()->addMessageToQueue(reply); } -SharedHandle DHTPingMessage::getArgument() +std::shared_ptr DHTPingMessage::getArgument() { - SharedHandle aDict = Dict::g(); + std::shared_ptr aDict = Dict::g(); aDict->put(DHTMessage::ID, String::g(getLocalNode()->getID(), DHT_ID_LENGTH)); return aDict; } -- cgit