[core] FileSourceManager::getFileSource() returns PassRefPtr

This commit is contained in:
Mikhail Pozdnyakov
2020-02-25 22:25:10 +02:00
parent 1399040087
commit aad13f6a3f
15 changed files with 69 additions and 48 deletions

View File

@@ -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();