diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-02-23 14:19:50 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-02-24 13:38:14 -0800 |
commit | 65c06e62707a9982dedf39a88904bce04df1e227 (patch) | |
tree | d38092896a51e1ad3efdb03c8e198d5219c144b9 /platform/default/mbgl | |
parent | 5a6cee0dd0f90f8a3bfa79ebde2a4896b9eeaeea (diff) | |
download | qtlocation-mapboxgl-65c06e62707a9982dedf39a88904bce04df1e227.tar.gz |
[core] status.requiredResourceCountIsIndeterminate ⇢ status.requiredResourceCountIsPrecise
Change the name and reverse the sense. Naming things in the positive is better than naming them in the negative.
Diffstat (limited to 'platform/default/mbgl')
-rw-r--r-- | platform/default/mbgl/storage/offline_download.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/platform/default/mbgl/storage/offline_download.cpp b/platform/default/mbgl/storage/offline_download.cpp index 27bf3b8c5b..228942f1f0 100644 --- a/platform/default/mbgl/storage/offline_download.cpp +++ b/platform/default/mbgl/storage/offline_download.cpp @@ -94,7 +94,7 @@ OfflineRegionStatus OfflineDownload::getStatus() const { StyleParser parser; parser.parse(*styleResponse->data); - result.requiredResourceCountIsIndeterminate = false; + result.requiredResourceCountIsPrecise = true; for (const auto& source : parser.sources) { switch (source->type) { @@ -109,7 +109,7 @@ OfflineRegionStatus OfflineDownload::getStatus() const { result.requiredResourceCount += tileResources(source->type, source->tileSize, *StyleParser::parseTileJSON(*sourceResponse->data, source->url, source->type, source->tileSize)).size(); } else { - result.requiredResourceCountIsIndeterminate = true; + result.requiredResourceCountIsPrecise = false; } } break; @@ -137,7 +137,7 @@ void OfflineDownload::activateDownload() { requiredSourceURLs.clear(); ensureResource(Resource::style(definition.styleURL), [&] (Response styleResponse) { - status.requiredResourceCountIsIndeterminate = false; + status.requiredResourceCountIsPrecise = true; StyleParser parser; parser.parse(*styleResponse.data); @@ -153,7 +153,7 @@ void OfflineDownload::activateDownload() { if (source->getInfo()) { ensureTiles(type, tileSize, *source->getInfo()); } else { - status.requiredResourceCountIsIndeterminate = true; + status.requiredResourceCountIsPrecise = false; requiredSourceURLs.insert(url); ensureResource(Resource::source(url), [=] (Response sourceResponse) { @@ -161,7 +161,7 @@ void OfflineDownload::activateDownload() { requiredSourceURLs.erase(url); if (requiredSourceURLs.empty()) { - status.requiredResourceCountIsIndeterminate = false; + status.requiredResourceCountIsPrecise = true; } }); } |