summaryrefslogtreecommitdiff
path: root/platform/macos
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2019-03-18 23:41:34 +0200
committerBruno de Oliveira Abinader <bruno@mapbox.com>2019-03-20 21:30:08 +0200
commit8ac73254c19b36fff35c50991bf79f5c98fc4421 (patch)
tree828db7879edbb872abda8f23c0b713a08e95e16d /platform/macos
parent8b88088316ddcadaf16d622ecd9fd37d8e8a75cc (diff)
downloadqtlocation-mapboxgl-8ac73254c19b36fff35c50991bf79f5c98fc4421.tar.gz
[darwin] [MGLOfflineStorage mbglFileSource] is now a shared_ptr
Diffstat (limited to 'platform/macos')
-rw-r--r--platform/macos/src/MGLMapView.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/macos/src/MGLMapView.mm b/platform/macos/src/MGLMapView.mm
index 320abf740c..5b2fae90ab 100644
--- a/platform/macos/src/MGLMapView.mm
+++ b/platform/macos/src/MGLMapView.mm
@@ -295,7 +295,7 @@ public:
.withConstrainMode(mbgl::ConstrainMode::None)
.withViewportMode(mbgl::ViewportMode::Default)
.withCrossSourceCollisions(enableCrossSourceCollisions);
- _mbglMap = new mbgl::Map(*_rendererFrontend, *_mbglView, self.size, config.scaleFactor, *config.fileSource, *_mbglThreadPool, mapOptions);
+ _mbglMap = new mbgl::Map(*_rendererFrontend, *_mbglView, self.size, config.scaleFactor, *[[MGLOfflineStorage sharedOfflineStorage] mbglFileSource], *_mbglThreadPool, mapOptions);
// Install the OpenGL layer. Interface Builder’s synchronous drawing means
// we can’t display a map, so don’t even bother to have a map layer.