84
|
1 |
--- aria2-0.9.0/src/AnnounceList.cc.orig6 2006-12-12 14:58:28.452570000 +0800
|
|
2 |
+++ aria2-0.9.0/src/AnnounceList.cc 2006-12-13 17:49:00.868706000 +0800
|
|
3 |
@@ -177,11 +177,15 @@
|
|
4 |
};
|
|
5 |
|
|
6 |
int AnnounceList::countStoppedAllowedTier() const {
|
|
7 |
- return count_if(tiers.begin(), tiers.end(), FindStoppedAllowedTier());
|
|
8 |
+ int result;
|
|
9 |
+ count_if(tiers.begin(), tiers.end(), FindStoppedAllowedTier(), result);
|
|
10 |
+ return result;
|
|
11 |
}
|
|
12 |
|
|
13 |
int AnnounceList::countCompletedAllowedTier() const {
|
|
14 |
- return count_if(tiers.begin(), tiers.end(), FindCompletedAllowedTier());
|
|
15 |
+ int result;
|
|
16 |
+ count_if(tiers.begin(), tiers.end(), FindCompletedAllowedTier(), result);
|
|
17 |
+ return result;
|
|
18 |
}
|
|
19 |
|
|
20 |
void AnnounceList::setCurrentTier(const AnnounceTiers::iterator& itr) {
|