From 93e5dbed325f29c1bf867a2847d3b839d545cfb2 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 12 Nov 2010 12:48:48 +0000 Subject: 2010-11-12 Tatsuhiro Tsujikawa Removed SharedHandle::isNull(). Instead we added operator* and operator unspecified_bool_type. Removed use of WeakHandle and replaced with raw pointer. --- src/AdaptiveFileAllocationIterator.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/AdaptiveFileAllocationIterator.cc') diff --git a/src/AdaptiveFileAllocationIterator.cc b/src/AdaptiveFileAllocationIterator.cc index 19010217..cd1fe1e5 100644 --- a/src/AdaptiveFileAllocationIterator.cc +++ b/src/AdaptiveFileAllocationIterator.cc @@ -53,7 +53,7 @@ AdaptiveFileAllocationIterator::~AdaptiveFileAllocationIterator() {} void AdaptiveFileAllocationIterator::allocateChunk() { - if(allocator_.isNull()) { + if(!allocator_) { #ifdef HAVE_FALLOCATE try { if(logger_->debug()) { @@ -92,7 +92,7 @@ void AdaptiveFileAllocationIterator::allocateChunk() bool AdaptiveFileAllocationIterator::finished() { - if(allocator_.isNull()) { + if(!allocator_) { return (uint64_t)offset_ == totalLength_; } else { return allocator_->finished(); -- cgit