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/StreamFileAllocationEntry.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/StreamFileAllocationEntry.cc') diff --git a/src/StreamFileAllocationEntry.cc b/src/StreamFileAllocationEntry.cc index 2dea0068..62322395 100644 --- a/src/StreamFileAllocationEntry.cc +++ b/src/StreamFileAllocationEntry.cc @@ -76,7 +76,7 @@ void StreamFileAllocationEntry::prepareForNextAction for(std::deque >::const_iterator j = reqs.begin(), eoj = reqs.end(); j != eoj; ++j) { const SharedHandle& peerStat = (*j)->getPeerStat(); - if(!peerStat.isNull()) { + if(peerStat) { peerStat->downloadStart(); } } -- cgit