summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/cache.cpp2
-rw-r--r--bin/offline.cpp6
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;