diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2020-02-25 22:25:10 +0200 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2020-02-26 22:31:59 +0200 |
commit | aad13f6a3f998dc5b699b9e09484ca63bb5be6f1 (patch) | |
tree | c2de65ea2cb23bb5c1740f55a92d85eaae8f2e83 /bin | |
parent | 1399040087f9d0b6f2a836fc5e6468c938ebf99b (diff) | |
download | qtlocation-mapboxgl-aad13f6a3f998dc5b699b9e09484ca63bb5be6f1.tar.gz |
[core] FileSourceManager::getFileSource() returns PassRefPtr
Diffstat (limited to 'bin')
-rw-r--r-- | bin/cache.cpp | 2 | ||||
-rw-r--r-- | bin/offline.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/bin/cache.cpp b/bin/cache.cpp index 1df782f752..69d96c1d42 100644 --- a/bin/cache.cpp +++ b/bin/cache.cpp @@ -90,7 +90,7 @@ int main(int argc, char* argv[]) { } mbgl::util::RunLoop loop; - auto dbfs = mbgl::FileSourceManager::get()->getFileSource( + std::shared_ptr<mbgl::FileSource> dbfs = mbgl::FileSourceManager::get()->getFileSource( mbgl::FileSourceType::Database, mbgl::ResourceOptions().withCachePath(args::get(cacheValue))); dbfs->forward(resource, response, [&loop] { loop.stop(); }); loop.run(); diff --git a/bin/offline.cpp b/bin/offline.cpp index c18fc31810..97b60c223f 100644 --- a/bin/offline.cpp +++ b/bin/offline.cpp @@ -163,10 +163,10 @@ int main(int argc, char *argv[]) { util::RunLoop loop; - std::shared_ptr<DatabaseFileSource> fileSource = - std::static_pointer_cast<DatabaseFileSource>(FileSourceManager::get()->getFileSource( + std::shared_ptr<DatabaseFileSource> fileSource = std::static_pointer_cast<DatabaseFileSource>( + std::shared_ptr<FileSource>(FileSourceManager::get()->getFileSource( FileSourceType::Database, - ResourceOptions().withAccessToken(token).withBaseURL(apiBaseURL).withCachePath(output))); + ResourceOptions().withAccessToken(token).withBaseURL(apiBaseURL).withCachePath(output)))); std::unique_ptr<OfflineRegion> region; |