summaryrefslogtreecommitdiff
path: root/src/BtNotInterestedMessage.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-06-23 00:01:40 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-06-23 00:01:40 +0900
commit1a299c4d7cf5ab8d130e678d152c4c47ae3430ea (patch)
tree9045ad623be7ec199214a327524f00d8a9669632 /src/BtNotInterestedMessage.cc
parent09c597fbb83fcd4fd958dae38ab0f2c7718da570 (diff)
Use raw pointers to PieceStorage, PeerStorage and DownloadContxt for BtMessages
Diffstat (limited to 'src/BtNotInterestedMessage.cc')
-rw-r--r--src/BtNotInterestedMessage.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/BtNotInterestedMessage.cc b/src/BtNotInterestedMessage.cc
index eca078d5..dcd9b810 100644
--- a/src/BtNotInterestedMessage.cc
+++ b/src/BtNotInterestedMessage.cc
@@ -41,7 +41,10 @@ namespace aria2 {
const char BtNotInterestedMessage::NAME[] = "not interested";
-BtNotInterestedMessage::BtNotInterestedMessage():ZeroBtMessage(ID, NAME) {}
+BtNotInterestedMessage::BtNotInterestedMessage()
+ : ZeroBtMessage(ID, NAME),
+ peerStorage_(0)
+{}
BtNotInterestedMessage::~BtNotInterestedMessage() {}
@@ -86,8 +89,7 @@ ProgressUpdate* BtNotInterestedMessage::getProgressUpdate()
return new ThisProgressUpdate(getPeer());
}
-void BtNotInterestedMessage::setPeerStorage
-(const std::shared_ptr<PeerStorage>& peerStorage)
+void BtNotInterestedMessage::setPeerStorage(PeerStorage* peerStorage)
{
peerStorage_ = peerStorage;
}