diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-03-20 12:38:09 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-03-23 20:05:40 +0200 |
commit | 02e91428fd1cf04c19dd676563745cea19d67832 (patch) | |
tree | 2e96c473d23a1e23372a215d7f5b0cdfa101dbf4 | |
parent | cee3910f179c39d5dc14e6e4307f5d51bb4d1256 (diff) | |
download | qtlocation-mapboxgl-02e91428fd1cf04c19dd676563745cea19d67832.tar.gz |
[core] Fix modernize-use-auto errors
As reported by clang-tidy-8.
-rw-r--r-- | platform/default/src/mbgl/storage/online_file_source.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/default/src/mbgl/storage/online_file_source.cpp b/platform/default/src/mbgl/storage/online_file_source.cpp index e72b506118..bc9ee40bca 100644 --- a/platform/default/src/mbgl/storage/online_file_source.cpp +++ b/platform/default/src/mbgl/storage/online_file_source.cpp @@ -335,7 +335,7 @@ public: void setMaximumConcurrentRequests(const mapbox::base::Value& value) { if (auto* maximumConcurrentRequests = value.getUint()) { assert(*maximumConcurrentRequests < std::numeric_limits<uint32_t>::max()); - const uint32_t maxConcurretnRequests = static_cast<uint32_t>(*maximumConcurrentRequests); + const auto maxConcurretnRequests = static_cast<uint32_t>(*maximumConcurrentRequests); thread->actor().invoke(&OnlineFileSourceThread::setMaximumConcurrentRequests, maxConcurretnRequests); { std::lock_guard<std::mutex> lock(maximumConcurrentRequestsMutex); |