diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-06-09 15:04:01 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-06-09 15:04:01 +0000 |
| commit | a68b29a31abdf69c34b36a9c31d834a8bb71852e (patch) | |
| tree | be0cf6590671b3dc4472bdbf26a7d911c5871279 /src/PieceHashCheckIntegrityEntry.cc | |
| parent | f114c890961ef9a0f7666b077b40d22f39b6cdd3 (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/PieceHashCheckIntegrityEntry.cc')
| -rw-r--r-- | src/PieceHashCheckIntegrityEntry.cc | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/PieceHashCheckIntegrityEntry.cc b/src/PieceHashCheckIntegrityEntry.cc index 6b784eb8..aea5d80c 100644 --- a/src/PieceHashCheckIntegrityEntry.cc +++ b/src/PieceHashCheckIntegrityEntry.cc @@ -40,8 +40,9 @@ namespace aria2 { -PieceHashCheckIntegrityEntry::PieceHashCheckIntegrityEntry(RequestGroup* requestGroup, - Command* nextCommand): +PieceHashCheckIntegrityEntry::PieceHashCheckIntegrityEntry +(RequestGroup* requestGroup, + Command* nextCommand): CheckIntegrityEntry(requestGroup, nextCommand) {} PieceHashCheckIntegrityEntry::~PieceHashCheckIntegrityEntry() {} @@ -49,7 +50,7 @@ PieceHashCheckIntegrityEntry::~PieceHashCheckIntegrityEntry() {} bool PieceHashCheckIntegrityEntry::isValidationReady() { const SharedHandle<DownloadContext>& dctx = - _requestGroup->getDownloadContext(); + getRequestGroup()->getDownloadContext(); return !dctx->getPieceHashAlgo().empty() && dctx->getPieceHashes().size() > 0 && dctx->getPieceHashes().size() == dctx->getNumPieces(); @@ -59,10 +60,11 @@ void PieceHashCheckIntegrityEntry::initValidator() { #ifdef ENABLE_MESSAGE_DIGEST IteratableChunkChecksumValidatorHandle validator - (new IteratableChunkChecksumValidator(_requestGroup->getDownloadContext(), - _requestGroup->getPieceStorage())); + (new IteratableChunkChecksumValidator + (getRequestGroup()->getDownloadContext(), + getRequestGroup()->getPieceStorage())); validator->init(); - _validator = validator; + setValidator(validator); #endif // ENABLE_MESSAGE_DIGEST } |
