summaryrefslogtreecommitdiff
path: root/bin/offline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bin/offline.cpp')
-rw-r--r--bin/offline.cpp6
1 files changed, 3 insertions, 3 deletions
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;