diff --git a/ChangeLog b/ChangeLog index d002ed40..3f567038 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-04-17 Tatsuhiro Tsujikawa + + Code cleanup + * src/RequestGroupMan.cc + 2009-04-17 Tatsuhiro Tsujikawa Code cleanup diff --git a/src/RequestGroupMan.cc b/src/RequestGroupMan.cc index 28eb7dac..c5a952a9 100644 --- a/src/RequestGroupMan.cc +++ b/src/RequestGroupMan.cc @@ -307,7 +307,7 @@ void RequestGroupMan::fillRequestGroupFromReserver(DownloadEngine* e) removeStoppedGroup(e); unsigned int count = 0; for(int num = _maxSimultaneousDownloads-_requestGroups.size(); - num > 0 && _reservedGroups.size() > 0; --num) { + num > 0 && !_reservedGroups.empty(); --num) { RequestGroupHandle groupToAdd = _reservedGroups.front(); _reservedGroups.pop_front(); try {