summaryrefslogtreecommitdiff
path: root/src/BtFileAllocationEntry.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-06-09 15:04:01 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-06-09 15:04:01 +0000
commita68b29a31abdf69c34b36a9c31d834a8bb71852e (patch)
treebe0cf6590671b3dc4472bdbf26a7d911c5871279 /src/BtFileAllocationEntry.cc
parentf114c890961ef9a0f7666b077b40d22f39b6cdd3 (diff)
2010-06-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Made protected member variable private. Added accessor funcs. * src/BtCheckIntegrityEntry.cc * src/BtFileAllocationEntry.cc * src/CheckIntegrityEntry.cc * src/CheckIntegrityEntry.h * src/ChecksumCheckIntegrityEntry.cc * src/FileAllocationEntry.cc * src/PieceHashCheckIntegrityEntry.cc * src/RequestGroupEntry.h * src/StreamCheckIntegrityEntry.cc * src/StreamFileAllocationEntry.cc
Diffstat (limited to 'src/BtFileAllocationEntry.cc')
-rw-r--r--src/BtFileAllocationEntry.cc14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/BtFileAllocationEntry.cc b/src/BtFileAllocationEntry.cc
index c6b2057d..834a318e 100644
--- a/src/BtFileAllocationEntry.cc
+++ b/src/BtFileAllocationEntry.cc
@@ -55,13 +55,15 @@ BtFileAllocationEntry::~BtFileAllocationEntry() {}
void BtFileAllocationEntry::prepareForNextAction
(std::vector<Command*>& commands, DownloadEngine* e)
{
- BtSetup().setup(commands, _requestGroup, e, _requestGroup->getOption().get());
- if(!_requestGroup->downloadFinished()) {
- _requestGroup->getDownloadContext()->resetDownloadStartTime();
+ BtSetup().setup(commands, getRequestGroup(), e,
+ getRequestGroup()->getOption().get());
+ if(!getRequestGroup()->downloadFinished()) {
+ getRequestGroup()->getDownloadContext()->resetDownloadStartTime();
const std::vector<SharedHandle<FileEntry> >& fileEntries =
- _requestGroup->getDownloadContext()->getFileEntries();
- if(isUriSuppliedForRequsetFileEntry(fileEntries.begin(), fileEntries.end())) {
- _requestGroup->createNextCommandWithAdj(commands, e, 0);
+ getRequestGroup()->getDownloadContext()->getFileEntries();
+ if(isUriSuppliedForRequsetFileEntry
+ (fileEntries.begin(), fileEntries.end())) {
+ getRequestGroup()->createNextCommandWithAdj(commands, e, 0);
}
}
}