diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2020-02-26 17:47:03 +0200 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2020-02-26 22:31:59 +0200 |
commit | ba4f5efa09b985f0bab99a53dc9ac27dd6fb94ea (patch) | |
tree | 48354dd1d9d2d639aa6374bf835c98f13c9ef2eb /platform/android | |
parent | 25d8eab9737111ab1f2af369125705f241543e51 (diff) | |
download | qtlocation-mapboxgl-ba4f5efa09b985f0bab99a53dc9ac27dd6fb94ea.tar.gz |
[core] OnlineFileSource is never accessed directly
Diffstat (limited to 'platform/android')
-rw-r--r-- | platform/android/src/file_source.cpp | 3 | ||||
-rw-r--r-- | platform/android/src/file_source.hpp | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/platform/android/src/file_source.cpp b/platform/android/src/file_source.cpp index 5a46bffd3e..f95066546a 100644 --- a/platform/android/src/file_source.cpp +++ b/platform/android/src/file_source.cpp @@ -43,8 +43,7 @@ FileSource::FileSource(jni::JNIEnv& _env, const jni::String& accessToken, const mbgl::FileSourceManager::get()->getFileSource(mbgl::FileSourceType::ResourceLoader, resourceOptions); databaseSource = std::static_pointer_cast<mbgl::DatabaseFileSource>(std::shared_ptr<mbgl::FileSource>( mbgl::FileSourceManager::get()->getFileSource(mbgl::FileSourceType::Database, resourceOptions))); - onlineSource = std::static_pointer_cast<mbgl::OnlineFileSource>(std::shared_ptr<mbgl::FileSource>( - mbgl::FileSourceManager::get()->getFileSource(mbgl::FileSourceType::Network, resourceOptions))); + onlineSource = mbgl::FileSourceManager::get()->getFileSource(mbgl::FileSourceType::Network, resourceOptions); } FileSource::~FileSource() { diff --git a/platform/android/src/file_source.hpp b/platform/android/src/file_source.hpp index 591bfbc93e..3bf0fed2eb 100644 --- a/platform/android/src/file_source.hpp +++ b/platform/android/src/file_source.hpp @@ -75,7 +75,7 @@ private: std::unique_ptr<Actor<ResourceTransform::TransformCallback>> resourceTransform; std::function<void()> pathChangeCallback; std::shared_ptr<mbgl::DatabaseFileSource> databaseSource; - std::shared_ptr<mbgl::OnlineFileSource> onlineSource; + std::shared_ptr<mbgl::FileSource> onlineSource; std::shared_ptr<mbgl::FileSource> resourceLoader; }; |