summaryrefslogtreecommitdiff
path: root/platform/darwin
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2020-02-11 12:12:57 +0200
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2020-02-11 14:34:46 +0200
commit3bd2d0e4d7d52dc88d30081922e1708f0d5a4bcf (patch)
treef2b143fc74c48283e8ad43005c4da8050bb88042 /platform/darwin
parentf38330a9f58ca3b2664168c7830811055870bc42 (diff)
downloadqtlocation-mapboxgl-3bd2d0e4d7d52dc88d30081922e1708f0d5a4bcf.tar.gz
style::Style::getImage() returns optional<style::Image>
Diffstat (limited to 'platform/darwin')
-rw-r--r--platform/darwin/src/MGLStyle.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/darwin/src/MGLStyle.mm b/platform/darwin/src/MGLStyle.mm
index cab0eaae28..6a496dc3c0 100644
--- a/platform/darwin/src/MGLStyle.mm
+++ b/platform/darwin/src/MGLStyle.mm
@@ -528,7 +528,7 @@ static_assert(6 == mbgl::util::default_styles::numOrderedStyles,
}
auto styleImage = self.rawStyle->getImage([name UTF8String]);
- return styleImage ? [[MGLImage alloc] initWithMGLStyleImage:styleImage] : nil;
+ return styleImage ? [[MGLImage alloc] initWithMGLStyleImage:&(*styleImage)] : nil;
}
#pragma mark Style transitions