summaryrefslogtreecommitdiff
path: root/src/StreamFileAllocationEntry.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-06-22 01:10:38 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-06-22 01:10:38 +0900
commit07d270c87e6f9184aea4ca17eb26e466712e8db2 (patch)
tree2dfbaa2e0d2ad0f38cb73098608f7d67a64320f8 /src/StreamFileAllocationEntry.cc
parent126a4bde612eb0e6c48cf2f13ebe3eac45cc71a8 (diff)
Require -std=c++11 and use std::shared_ptr instead of SharedHandle
Diffstat (limited to 'src/StreamFileAllocationEntry.cc')
-rw-r--r--src/StreamFileAllocationEntry.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/StreamFileAllocationEntry.cc b/src/StreamFileAllocationEntry.cc
index b93df899..9afa6f29 100644
--- a/src/StreamFileAllocationEntry.cc
+++ b/src/StreamFileAllocationEntry.cc
@@ -69,17 +69,17 @@ void StreamFileAllocationEntry::prepareForNextAction
if(getNextCommand()) {
// Reset download start time of PeerStat because it is started
// before file allocation begins.
- const SharedHandle<DownloadContext>& dctx =
+ const std::shared_ptr<DownloadContext>& dctx =
getRequestGroup()->getDownloadContext();
- const std::vector<SharedHandle<FileEntry> >& fileEntries =
+ const std::vector<std::shared_ptr<FileEntry> >& fileEntries =
dctx->getFileEntries();
- for(std::vector<SharedHandle<FileEntry> >::const_iterator i =
+ for(std::vector<std::shared_ptr<FileEntry> >::const_iterator i =
fileEntries.begin(), eoi = fileEntries.end(); i != eoi; ++i) {
const FileEntry::InFlightRequestSet& reqs =
(*i)->getInFlightRequests();
for(FileEntry::InFlightRequestSet::iterator j =
reqs.begin(), eoj = reqs.end(); j != eoj; ++j) {
- const SharedHandle<PeerStat>& peerStat = (*j)->getPeerStat();
+ const std::shared_ptr<PeerStat>& peerStat = (*j)->getPeerStat();
if(peerStat) {
peerStat->downloadStart();
}