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/HttpRequestCommand.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/HttpRequestCommand.cc') diff --git a/src/HttpRequestCommand.cc b/src/HttpRequestCommand.cc index 91a7d4b4..d8964052 100644 --- a/src/HttpRequestCommand.cc +++ b/src/HttpRequestCommand.cc @@ -183,7 +183,7 @@ bool HttpRequestCommand::executeInternal() { if(!httpConnection_->isIssued(segment)) { off_t endOffset = 0; if(getRequestGroup()->getTotalLength() > 0 && - !getPieceStorage().isNull()) { + getPieceStorage()) { size_t nextIndex = getPieceStorage()->getNextUsedIndex(segment->getIndex()); endOffset = std::min -- cgit