diff options
| author | Nils Maier <maierman@web.de> | 2013-08-25 18:00:46 +0200 |
|---|---|---|
| committer | Nils Maier <maierman@web.de> | 2013-09-20 23:06:49 +0200 |
| commit | 3590077d5c43d492b3e357d1a50afca4a7d1cfcf (patch) | |
| tree | 592516aa08b74c7e90c41a9b50c227f3f5b877b0 /src/FileEntry.cc | |
| parent | a76eeb2b8106dd725097750c3ee4958e505e3c85 (diff) | |
More auto-converts by cpp11-migrate
Diffstat (limited to 'src/FileEntry.cc')
| -rw-r--r-- | src/FileEntry.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/FileEntry.cc b/src/FileEntry.cc index 2786619d..6f572bc0 100644 --- a/src/FileEntry.cc +++ b/src/FileEntry.cc @@ -197,8 +197,8 @@ FileEntry::getRequest // sleeping(Request::getWakeTime() < global::wallclock()). If all // pooled objects are sleeping, return first one. Caller should // inspect returned object's getWakeTime(). - RequestPool::iterator i = requestPool_.begin(); - RequestPool::iterator eoi = requestPool_.end(); + auto i = requestPool_.begin(); + auto eoi = requestPool_.end(); for(; i != eoi; ++i) { if((*i)->getWakeTime() <= global::wallclock()) { break; @@ -494,10 +494,10 @@ bool FileEntry::removeUri(const std::string& uri) } spentUris_.erase(itr); std::shared_ptr<Request> req; - InFlightRequestSet::iterator riter = + auto riter = findRequestByUri(inFlightRequests_.begin(), inFlightRequests_.end(), uri); if(riter == inFlightRequests_.end()) { - RequestPool::iterator riter = findRequestByUri(requestPool_.begin(), + auto riter = findRequestByUri(requestPool_.begin(), requestPool_.end(), uri); if(riter == requestPool_.end()) { return true; |
