summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLOfflineStorage.mm
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2019-03-22 21:15:00 +0200
committerBruno de Oliveira Abinader <bruno@mapbox.com>2019-03-23 09:12:44 +0200
commitac6855a4734be099319e4003eff4951074e7fd57 (patch)
treed6c7a4d73fe221c307d507ced96a7ad29880db92 /platform/darwin/src/MGLOfflineStorage.mm
parent1d7b243a06c6c3d2def4d1989e93e90250e87cad (diff)
downloadqtlocation-mapboxgl-ac6855a4734be099319e4003eff4951074e7fd57.tar.gz
[core] Fix signature of fluent interface setters
Diffstat (limited to 'platform/darwin/src/MGLOfflineStorage.mm')
-rw-r--r--platform/darwin/src/MGLOfflineStorage.mm5
1 files changed, 3 insertions, 2 deletions
diff --git a/platform/darwin/src/MGLOfflineStorage.mm b/platform/darwin/src/MGLOfflineStorage.mm
index 5f3b2c7c20..6effd8c3ce 100644
--- a/platform/darwin/src/MGLOfflineStorage.mm
+++ b/platform/darwin/src/MGLOfflineStorage.mm
@@ -226,8 +226,9 @@ const MGLExceptionName MGLUnsupportedRegionTypeException = @"MGLUnsupportedRegio
}
_mbglCachePath = cachePath.UTF8String;
- auto options = mbgl::ResourceOptions().withCachePath(_mbglCachePath)
- .withAssetPath([NSBundle mainBundle].resourceURL.path.UTF8String);
+ mbgl::ResourceOptions options;
+ options.withCachePath(_mbglCachePath)
+ .withAssetPath([NSBundle mainBundle].resourceURL.path.UTF8String);
_mbglFileSource = std::static_pointer_cast<mbgl::DefaultFileSource>(mbgl::FileSource::getSharedFileSource(options));
// Observe for changes to the API base URL (and find out the current one).