[core] OnlineFileSource is never accessed directly

This commit is contained in:
Mikhail Pozdnyakov
2020-02-26 17:47:03 +02:00
parent 25d8eab973
commit ba4f5efa09
10 changed files with 143 additions and 153 deletions

View File

@@ -1753,7 +1753,7 @@ QMapboxGLPrivate::QMapboxGLPrivate(QMapboxGL *q, const QMapboxGLSettings &settin
}};
std::shared_ptr<mbgl::FileSource> fs =
mbgl::FileSourceManager::get()->getFileSource(mbgl::FileSourceType::Network, resourceOptions);
std::static_pointer_cast<mbgl::OnlineFileSource>(fs)->setResourceTransform(std::move(transform));
fs->setResourceTransform(std::move(transform));
}
// Needs to be Queued to give time to discard redundant draw calls via the `renderQueued` flag.