mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-16 07:39:11 +02:00
Update to match coding standards
- Single letter for loop variable names - Preface bool variables with is/has/should/can/want
This commit is contained in:
parent
6094613d06
commit
66f9effd12
1 changed files with 6 additions and 6 deletions
|
@ -198,17 +198,17 @@ void Stats::updateStats(bool force) {
|
|||
STAT_UPDATE(downloadsPending, ResourceCache::getPendingRequestCount());
|
||||
|
||||
// See if the active download urls have changed
|
||||
bool updateUrls = _downloads != _downloadUrls.size();
|
||||
if (!updateUrls) {
|
||||
for (int ii = 0; ii < _downloads; ii++) {
|
||||
if (loadingRequests[ii]->getURL().toString() != _downloadUrls[ii]) {
|
||||
updateUrls = true;
|
||||
bool shouldUpdateUrls = _downloads != _downloadUrls.size();
|
||||
if (!shouldUpdateUrls) {
|
||||
for (int i = 0; i < _downloads; i++) {
|
||||
if (loadingRequests[i]->getURL().toString() != _downloadUrls[i]) {
|
||||
shouldUpdateUrls = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
// If the urls have changed, update the list
|
||||
if (updateUrls) {
|
||||
if (shouldUpdateUrls) {
|
||||
_downloadUrls.clear();
|
||||
foreach (Resource* resource, loadingRequests) {
|
||||
_downloadUrls << resource->getURL().toString();
|
||||
|
|
Loading…
Reference in a new issue