Use raw pointers to PieceStorage, PeerStorage and DownloadContxt for BtMessages

This commit is contained in:
Tatsuhiro Tsujikawa 2013-06-23 00:01:40 +09:00
parent 09c597fbb8
commit 1a299c4d7c
21 changed files with 87 additions and 63 deletions

View file

@ -40,7 +40,7 @@ public:
exmsgFactory_.reset(new MockExtensionMessageFactory());
factory_.reset(new DefaultBtMessageFactory());
factory_->setDownloadContext(dctx_);
factory_->setDownloadContext(dctx_.get());
factory_->setPeer(peer_);
factory_->setExtensionMessageFactory(exmsgFactory_);
}