diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-06-21 13:51:56 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-06-21 13:51:56 +0000 |
| commit | ca4940622c05e50a50f77c621ade914029663446 (patch) | |
| tree | 2715d87c6b4faa669ae317f6f95d9694630cd4a0 /src/FallocFileAllocationIterator.cc | |
| parent | ae957baa98d4f97ea2437596db5073f9c33d22ae (diff) | |
2010-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Changed naming standards for class member variable: now it looks
like var_ instead of _var.
Diffstat (limited to 'src/FallocFileAllocationIterator.cc')
| -rw-r--r-- | src/FallocFileAllocationIterator.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/FallocFileAllocationIterator.cc b/src/FallocFileAllocationIterator.cc index 2a6adef8..1fd53d68 100644 --- a/src/FallocFileAllocationIterator.cc +++ b/src/FallocFileAllocationIterator.cc @@ -39,31 +39,31 @@ namespace aria2 { FallocFileAllocationIterator::FallocFileAllocationIterator (BinaryStream* stream, off_t offset, uint64_t totalLength): - _stream(stream), _offset(offset), _totalLength(totalLength) {} + stream_(stream), offset_(offset), totalLength_(totalLength) {} void FallocFileAllocationIterator::allocateChunk() { - if(static_cast<uint64_t>(_offset) > _totalLength) { + if(static_cast<uint64_t>(offset_) > totalLength_) { throw DL_ABORT_EX("FallocFileAllocationIterator: offset is larger than" " totalLength"); } - _stream->allocate(_offset, _totalLength-_offset); - _offset = _totalLength; + stream_->allocate(offset_, totalLength_-offset_); + offset_ = totalLength_; } bool FallocFileAllocationIterator::finished() { - return static_cast<uint64_t>(_offset) == _totalLength; + return static_cast<uint64_t>(offset_) == totalLength_; } off_t FallocFileAllocationIterator::getCurrentLength() { - return _offset; + return offset_; } uint64_t FallocFileAllocationIterator::getTotalLength() { - return _totalLength; + return totalLength_; } } // namespace aria2 |
